Interface ThresholdSequence.Holder
-
- All Superinterfaces:
org.dcm4che.typeddicom.AttributesWrapper
- All Known Implementing Classes:
AdvancedBlendingSequence.Item
- Enclosing class:
- ThresholdSequence
public static interface ThresholdSequence.Holder extends org.dcm4che.typeddicom.AttributesWrapperA class implementing this interface can hold attributes which contain the DICOM tag "Threshold Sequence" (seeThresholdSequence)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classThresholdSequence.Holder.Builder
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static ThresholdSequence.Holder.Builderbuilder()static ThresholdSequence.Holder.Builderbuilder(org.dcm4che3.data.Attributes attributes)default booleancontainsThresholdSequence()default ThresholdSequenceensureThresholdSequence()Adds 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 ThresholdSequencegetThresholdSequence()default ThresholdSequencenewThresholdSequence(int initialCapacity)Adds a new Threshold Sequence.default voidremoveThresholdSequence()Removes the Threshold Sequence (seeThresholdSequencestatic ThresholdSequence.Holderwrap(org.dcm4che3.data.Attributes attributes)
-
-
-
Method Detail
-
wrap
static ThresholdSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- an attributes object containing the Threshold Sequence (seeThresholdSequence)- Returns:
- a wrapper object implementing the
ThresholdSequence.Holderinterface.
-
builder
static ThresholdSequence.Holder.Builder builder()
- Returns:
- a
ThresholdSequence.Holder.Builderto create Threshold Sequence Items with a fluent API.
-
builder
static ThresholdSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- the Attributes to be wrapped by theThresholdSequence.Holder.Builder.- Returns:
- a
ThresholdSequence.Holder.Builderto create Threshold Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getThresholdSequence
default ThresholdSequence getThresholdSequence()
- Returns:
- the Threshold Sequence (see
ThresholdSequence)
-
newThresholdSequence
default ThresholdSequence newThresholdSequence(int initialCapacity)
Adds a new Threshold Sequence. (seeThresholdSequence)- Parameters:
initialCapacity- the initial capacity for the new Threshold Sequence- Returns:
- the newly created ThresholdSequence.
-
ensureThresholdSequence
default ThresholdSequence ensureThresholdSequence(int initialCapacity)
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
default ThresholdSequence 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
-
-