Class PrivateFileDicomKey

All Implemented Interfaces:
Serializable, Cloneable, Comparable<FileDicomKey>

public class PrivateFileDicomKey extends FileDicomKey implements Comparable<FileDicomKey>
Associates a FileDicomKey with a particular publisher to denote the source of the FileDicomKey. This publisher is often printed in the (x, 0010) tag for any group. When no publisher exists uses publisher NO_PUBLISHER
Author:
justinsenseney
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • getPublisher

      public String getPublisher()
    • setPublisher

      public void setPublisher(String publisher)
    • toString

      public String toString()
      Returns the unique identifier.
      Overrides:
      toString in class FileDicomKey
      Returns:
      The unique identifier.
    • convertToFileDicomKey

      public FileDicomKey convertToFileDicomKey()
    • compareTo

      public int compareTo(FileDicomKey dicomKey)
      Specified by:
      compareTo in interface Comparable<FileDicomKey>
      Overrides:
      compareTo in class FileDicomKey
    • hashCode

      public int hashCode()
      Description copied from class: FileDicomKey
      Returns the unique identifier's hash code.
      Overrides:
      hashCode in class FileDicomKey
      Returns:
      The hash code.
    • equals

      public boolean equals(Object obj)
      Objects are equal if both are of type FileDicomKey, and both refer to the same value; if the input type is a String and the String representation of the key matches. This equals method will check that the keys are exactly are equal or they are equal except for place-holding "x" characters.
      Overrides:
      equals in class FileDicomKey
      Parameters:
      obj - Object to compare to.
      Returns:
      true if equal.