Interface UsedSegmentsSequence.Holder
-
- All Superinterfaces:
org.dcm4che.typeddicom.AttributesWrapper
- All Known Implementing Classes:
RegistrationSequence.Item
- Enclosing class:
- UsedSegmentsSequence
public static interface UsedSegmentsSequence.Holder extends org.dcm4che.typeddicom.AttributesWrapperA class implementing this interface can hold attributes which contain the DICOM tag "Used Segments Sequence" (seeUsedSegmentsSequence)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classUsedSegmentsSequence.Holder.Builder
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static UsedSegmentsSequence.Holder.Builderbuilder()static UsedSegmentsSequence.Holder.Builderbuilder(org.dcm4che3.data.Attributes attributes)default booleancontainsUsedSegmentsSequence()default UsedSegmentsSequenceensureUsedSegmentsSequence()Adds a new Used Segments Sequence (seeUsedSegmentsSequence) with initial capacity 1 (seeensureUsedSegmentsSequence(int)) if it does not already exist.default UsedSegmentsSequenceensureUsedSegmentsSequence(int initialCapacity)Adds a new Used Segments Sequence (seeUsedSegmentsSequence) if it does not already exist.default UsedSegmentsSequencegetUsedSegmentsSequence()default UsedSegmentsSequencenewUsedSegmentsSequence(int initialCapacity)Adds a new Used Segments Sequence.default voidremoveUsedSegmentsSequence()Removes the Used Segments Sequence (seeUsedSegmentsSequencestatic UsedSegmentsSequence.Holderwrap(org.dcm4che3.data.Attributes attributes)
-
-
-
Method Detail
-
wrap
static UsedSegmentsSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- an attributes object containing the Used Segments Sequence (seeUsedSegmentsSequence)- Returns:
- a wrapper object implementing the
UsedSegmentsSequence.Holderinterface.
-
builder
static UsedSegmentsSequence.Holder.Builder builder()
- Returns:
- a
UsedSegmentsSequence.Holder.Builderto create Used Segments Sequence Items with a fluent API.
-
builder
static UsedSegmentsSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- the Attributes to be wrapped by theUsedSegmentsSequence.Holder.Builder.- Returns:
- a
UsedSegmentsSequence.Holder.Builderto create Used Segments Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getUsedSegmentsSequence
default UsedSegmentsSequence getUsedSegmentsSequence()
- Returns:
- the Used Segments Sequence (see
UsedSegmentsSequence)
-
newUsedSegmentsSequence
default UsedSegmentsSequence newUsedSegmentsSequence(int initialCapacity)
Adds a new Used Segments Sequence. (seeUsedSegmentsSequence)- Parameters:
initialCapacity- the initial capacity for the new Used Segments Sequence- Returns:
- the newly created UsedSegmentsSequence.
-
ensureUsedSegmentsSequence
default UsedSegmentsSequence ensureUsedSegmentsSequence(int initialCapacity)
Adds a new Used Segments Sequence (seeUsedSegmentsSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- the initial capacity (seeArrayList(int)) if a new Used Segments Sequence is created.- Returns:
- either the already existing Used Segments Sequence (see
UsedSegmentsSequence) or a new one with capacityinitialCapacity.
-
ensureUsedSegmentsSequence
default UsedSegmentsSequence ensureUsedSegmentsSequence()
Adds a new Used Segments Sequence (seeUsedSegmentsSequence) with initial capacity 1 (seeensureUsedSegmentsSequence(int)) if it does not already exist.- Returns:
- either the already existing Used Segments Sequence (see
UsedSegmentsSequence) or a new one with capacity 1.
-
containsUsedSegmentsSequence
default boolean containsUsedSegmentsSequence()
- Returns:
- whether it contains the Used Segments Sequence (see
UsedSegmentsSequence)
-
removeUsedSegmentsSequence
default void removeUsedSegmentsSequence()
Removes the Used Segments Sequence (seeUsedSegmentsSequence
-
-