Interface ChannelSourceModifiersSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
ChannelDefinitionSequence.Item,ChannelSourceModifiersSequence.SimpleHolder
- Enclosing class:
- ChannelSourceModifiersSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Channel Source Modifiers Sequence" (see
ChannelSourceModifiersSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault ChannelSourceModifiersSequenceAdds a new Channel Source Modifiers Sequence (seeChannelSourceModifiersSequence) with initial capacity 1 (seeensureChannelSourceModifiersSequence(int)) if it does not already exist.default ChannelSourceModifiersSequenceensureChannelSourceModifiersSequence(int initialCapacity) Adds a new Channel Source Modifiers Sequence (seeChannelSourceModifiersSequence) if it does not already exist.default ChannelSourceModifiersSequencedefault ChannelSourceModifiersSequencenewChannelSourceModifiersSequence(int initialCapacity) Adds a new Channel Source Modifiers Sequence.default voidRemoves the Channel Source Modifiers Sequence (seeChannelSourceModifiersSequencewrap(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 Channel Source Modifiers Sequence (seeChannelSourceModifiersSequence)- Returns:
- A wrapper object implementing the
ChannelSourceModifiersSequence.Holderinterface.
-
builder
- Returns:
- a
ChannelSourceModifiersSequence.Holder.Builderto create Channel Source Modifiers Sequence Items with a fluent API.
-
builder
static ChannelSourceModifiersSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes) - Parameters:
attributes- The Attributes to be wrapped by theChannelSourceModifiersSequence.Holder.Builder.- Returns:
- a
ChannelSourceModifiersSequence.Holder.Builderto create Channel Source Modifiers Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getChannelSourceModifiersSequence
- Returns:
- the Channel Source Modifiers Sequence (see
ChannelSourceModifiersSequence)
-
newChannelSourceModifiersSequence
Adds a new Channel Source Modifiers Sequence. (seeChannelSourceModifiersSequence)- Parameters:
initialCapacity- the initial capacity for the new Channel Source Modifiers Sequence
-
ensureChannelSourceModifiersSequence
Adds a new Channel Source Modifiers Sequence (seeChannelSourceModifiersSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Channel Source Modifiers Sequence is created.- Returns:
- Either the already existing Channel Source Modifiers Sequence (see
ChannelSourceModifiersSequence) or a new one with capacityinitialCapacity.
-
ensureChannelSourceModifiersSequence
Adds a new Channel Source Modifiers Sequence (seeChannelSourceModifiersSequence) with initial capacity 1 (seeensureChannelSourceModifiersSequence(int)) if it does not already exist.- Returns:
- Either the already existing Channel Source Modifiers Sequence (see
ChannelSourceModifiersSequence) or a new one with capacity 1.
-
containsChannelSourceModifiersSequence
default boolean containsChannelSourceModifiersSequence()- Returns:
- Whether it contains the Channel Source Modifiers Sequence (see
ChannelSourceModifiersSequence)
-
removeChannelSourceModifiersSequence
default void removeChannelSourceModifiersSequence()Removes the Channel Source Modifiers Sequence (seeChannelSourceModifiersSequence
-