Interface ChannelSequence.Holder
-
- All Superinterfaces:
org.dcm4che.typeddicom.AttributesWrapper
- All Known Implementing Classes:
ApplicationSetupSequence.Item
- Enclosing class:
- ChannelSequence
public static interface ChannelSequence.Holder extends org.dcm4che.typeddicom.AttributesWrapperA class implementing this interface can hold attributes which contain the DICOM tag "Channel Sequence" (seeChannelSequence)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classChannelSequence.Holder.Builder
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static ChannelSequence.Holder.Builderbuilder()static ChannelSequence.Holder.Builderbuilder(org.dcm4che3.data.Attributes attributes)default booleancontainsChannelSequence()default ChannelSequenceensureChannelSequence()Adds a new Channel Sequence (seeChannelSequence) with initial capacity 1 (seeensureChannelSequence(int)) if it does not already exist.default ChannelSequenceensureChannelSequence(int initialCapacity)Adds a new Channel Sequence (seeChannelSequence) if it does not already exist.default ChannelSequencegetChannelSequence()default ChannelSequencenewChannelSequence(int initialCapacity)Adds a new Channel Sequence.default voidremoveChannelSequence()Removes the Channel Sequence (seeChannelSequencestatic ChannelSequence.Holderwrap(org.dcm4che3.data.Attributes attributes)
-
-
-
Method Detail
-
wrap
static ChannelSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- an attributes object containing the Channel Sequence (seeChannelSequence)- Returns:
- a wrapper object implementing the
ChannelSequence.Holderinterface.
-
builder
static ChannelSequence.Holder.Builder builder()
- Returns:
- a
ChannelSequence.Holder.Builderto create Channel Sequence Items with a fluent API.
-
builder
static ChannelSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- the Attributes to be wrapped by theChannelSequence.Holder.Builder.- Returns:
- a
ChannelSequence.Holder.Builderto create Channel Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getChannelSequence
default ChannelSequence getChannelSequence()
- Returns:
- the Channel Sequence (see
ChannelSequence)
-
newChannelSequence
default ChannelSequence newChannelSequence(int initialCapacity)
Adds a new Channel Sequence. (seeChannelSequence)- Parameters:
initialCapacity- the initial capacity for the new Channel Sequence- Returns:
- the newly created ChannelSequence.
-
ensureChannelSequence
default ChannelSequence ensureChannelSequence(int initialCapacity)
Adds a new Channel Sequence (seeChannelSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- the initial capacity (seeArrayList(int)) if a new Channel Sequence is created.- Returns:
- either the already existing Channel Sequence (see
ChannelSequence) or a new one with capacityinitialCapacity.
-
ensureChannelSequence
default ChannelSequence ensureChannelSequence()
Adds a new Channel Sequence (seeChannelSequence) with initial capacity 1 (seeensureChannelSequence(int)) if it does not already exist.- Returns:
- either the already existing Channel Sequence (see
ChannelSequence) or a new one with capacity 1.
-
containsChannelSequence
default boolean containsChannelSequence()
- Returns:
- whether it contains the Channel Sequence (see
ChannelSequence)
-
removeChannelSequence
default void removeChannelSequence()
Removes the Channel Sequence (seeChannelSequence
-
-