Package gov.nih.mipav.model.file
Class PrivateFileDicomKey
java.lang.Object
gov.nih.mipav.model.structures.ModelSerialCloneable
gov.nih.mipav.model.file.FileDicomKey
gov.nih.mipav.model.file.PrivateFileDicomKey
- All Implemented Interfaces:
Serializable,Cloneable,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 Summary
FieldsFields inherited from class gov.nih.mipav.model.file.FileDicomKey
key -
Constructor Summary
ConstructorsConstructorDescriptionPrivateFileDicomKey(int group, int element) PrivateFileDicomKey(String keyStr) PrivateFileDicomKey(String publisher, int group, int element) PrivateFileDicomKey(String publisher, String keyStr) -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(FileDicomKey dicomKey) booleanObjects 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.inthashCode()Returns the unique identifier's hash code.voidsetPublisher(String publisher) toString()Returns the unique identifier.Methods inherited from class gov.nih.mipav.model.file.FileDicomKey
finalize, getElement, getElementNumber, getGroup, getGroupNumber, getKey, setKey, verifyMethods inherited from class gov.nih.mipav.model.structures.ModelSerialCloneable
clone, nativeClone
-
Field Details
-
NO_PUBLISHER
- See Also:
-
publisher
The publisher for this tag.
-
-
Constructor Details
-
PrivateFileDicomKey
-
PrivateFileDicomKey
-
PrivateFileDicomKey
- Throws:
NumberFormatException
-
PrivateFileDicomKey
- Throws:
NumberFormatException
-
-
Method Details
-
getPublisher
-
setPublisher
-
toString
Returns the unique identifier.- Overrides:
toStringin classFileDicomKey- Returns:
- The unique identifier.
-
convertToFileDicomKey
-
compareTo
- Specified by:
compareToin interfaceComparable<FileDicomKey>- Overrides:
compareToin classFileDicomKey
-
hashCode
public int hashCode()Description copied from class:FileDicomKeyReturns the unique identifier's hash code.- Overrides:
hashCodein classFileDicomKey- Returns:
- The hash code.
-
equals
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:
equalsin classFileDicomKey- Parameters:
obj- Object to compare to.- Returns:
trueif equal.
-