Interface ThresholdValueSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
ThresholdSequence.Item
- Enclosing class:
- ThresholdValueSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Threshold Value Sequence" (see
ThresholdValueSequence)-
Method Summary
Modifier and TypeMethodDescriptiondefault booleandefault ThresholdValueSequenceAdds a new Threshold Value Sequence (seeThresholdValueSequence) with initial capacity 1 (seeensureThresholdValueSequence(int)) if it does not already exist.default ThresholdValueSequenceensureThresholdValueSequence(int initialCapacity) Adds a new Threshold Value Sequence (seeThresholdValueSequence) if it does not already exist.default ThresholdValueSequencedefault ThresholdValueSequencenewThresholdValueSequence(int initialCapacity) Adds a new Threshold Value Sequence.default voidRemoves the Threshold Value Sequence (seeThresholdValueSequencewrap(org.dcm4che3.data.Attributes attributes) Methods inherited from interface org.dcm4che.typeddicom.AttributesWrapper
copy, getAttributes, isEmpty
-
Method Details
-
wrap
- Parameters:
attributes- An attributes object containing the Threshold Value Sequence (seeThresholdValueSequence)- Returns:
- A wrapper object implementing the
ThresholdValueSequence.Holderinterface.
-
getThresholdValueSequence
- Returns:
- the Threshold Value Sequence (see
ThresholdValueSequence)
-
newThresholdValueSequence
Adds a new Threshold Value Sequence. (seeThresholdValueSequence)- Parameters:
initialCapacity- the initial capacity for the new Threshold Value Sequence
-
ensureThresholdValueSequence
Adds a new Threshold Value Sequence (seeThresholdValueSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Threshold Value Sequence is created.- Returns:
- Either the already existing Threshold Value Sequence (see
ThresholdValueSequence) or a new one with capacityinitialCapacity.
-
ensureThresholdValueSequence
Adds a new Threshold Value Sequence (seeThresholdValueSequence) with initial capacity 1 (seeensureThresholdValueSequence(int)) if it does not already exist.- Returns:
- Either the already existing Threshold Value Sequence (see
ThresholdValueSequence) or a new one with capacity 1.
-
containsThresholdValueSequence
default boolean containsThresholdValueSequence()- Returns:
- Whether it contains the Threshold Value Sequence (see
ThresholdValueSequence)
-
removeThresholdValueSequence
default void removeThresholdValueSequence()Removes the Threshold Value Sequence (seeThresholdValueSequence
-