Interface ThresholdSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
AdvancedBlendingSequence.Item
- Enclosing class:
- ThresholdSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Threshold Sequence" (see
ThresholdSequence)-
Method Summary
Modifier and TypeMethodDescriptiondefault booleandefault ThresholdSequenceAdds a new Threshold Sequence (seeThresholdSequence) with initial capacity 1 (seeensureThresholdSequence(int)) if it does not already exist.default ThresholdSequenceensureThresholdSequence(int initialCapacity) Adds a new Threshold Sequence (seeThresholdSequence) if it does not already exist.default ThresholdSequencedefault ThresholdSequencenewThresholdSequence(int initialCapacity) Adds a new Threshold Sequence.default voidRemoves the Threshold Sequence (seeThresholdSequencestatic ThresholdSequence.Holderwrap(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 Sequence (seeThresholdSequence)- Returns:
- A wrapper object implementing the
ThresholdSequence.Holderinterface.
-
getThresholdSequence
- Returns:
- the Threshold Sequence (see
ThresholdSequence)
-
newThresholdSequence
Adds a new Threshold Sequence. (seeThresholdSequence)- Parameters:
initialCapacity- the initial capacity for the new Threshold Sequence
-
ensureThresholdSequence
Adds a new Threshold Sequence (seeThresholdSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Threshold Sequence is created.- Returns:
- Either the already existing Threshold Sequence (see
ThresholdSequence) or a new one with capacityinitialCapacity.
-
ensureThresholdSequence
Adds a new Threshold Sequence (seeThresholdSequence) with initial capacity 1 (seeensureThresholdSequence(int)) if it does not already exist.- Returns:
- Either the already existing Threshold Sequence (see
ThresholdSequence) or a new one with capacity 1.
-
containsThresholdSequence
default boolean containsThresholdSequence()- Returns:
- Whether it contains the Threshold Sequence (see
ThresholdSequence)
-
removeThresholdSequence
default void removeThresholdSequence()Removes the Threshold Sequence (seeThresholdSequence
-