Interface ThresholdValueSequence.Holder
-
- All Superinterfaces:
org.dcm4che.typeddicom.AttributesWrapper
- All Known Implementing Classes:
ThresholdSequence.Item,ThresholdValueSequence.SimpleHolder
- Enclosing class:
- ThresholdValueSequence
public static interface ThresholdValueSequence.Holder extends org.dcm4che.typeddicom.AttributesWrapperA class implementing this interface can hold attributes which contain the DICOM tag "Threshold Value Sequence" (seeThresholdValueSequence)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classThresholdValueSequence.Holder.Builder
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static ThresholdValueSequence.Holder.Builderbuilder()static ThresholdValueSequence.Holder.Builderbuilder(org.dcm4che3.data.Attributes attributes)default booleancontainsThresholdValueSequence()default ThresholdValueSequenceensureThresholdValueSequence()Adds 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 ThresholdValueSequencegetThresholdValueSequence()default ThresholdValueSequencenewThresholdValueSequence(int initialCapacity)Adds a new Threshold Value Sequence.default voidremoveThresholdValueSequence()Removes the Threshold Value Sequence (seeThresholdValueSequencestatic ThresholdValueSequence.Holderwrap(org.dcm4che3.data.Attributes attributes)
-
-
-
Method Detail
-
wrap
static ThresholdValueSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- an attributes object containing the Threshold Value Sequence (seeThresholdValueSequence)- Returns:
- a wrapper object implementing the
ThresholdValueSequence.Holderinterface.
-
builder
static ThresholdValueSequence.Holder.Builder builder()
- Returns:
- a
ThresholdValueSequence.Holder.Builderto create Threshold Value Sequence Items with a fluent API.
-
builder
static ThresholdValueSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- the Attributes to be wrapped by theThresholdValueSequence.Holder.Builder.- Returns:
- a
ThresholdValueSequence.Holder.Builderto create Threshold Value Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getThresholdValueSequence
default ThresholdValueSequence getThresholdValueSequence()
- Returns:
- the Threshold Value Sequence (see
ThresholdValueSequence)
-
newThresholdValueSequence
default ThresholdValueSequence newThresholdValueSequence(int initialCapacity)
Adds a new Threshold Value Sequence. (seeThresholdValueSequence)- Parameters:
initialCapacity- the initial capacity for the new Threshold Value Sequence- Returns:
- the newly created ThresholdValueSequence.
-
ensureThresholdValueSequence
default ThresholdValueSequence ensureThresholdValueSequence(int initialCapacity)
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
default ThresholdValueSequence 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
-
-