Interface DisplayDeviceTypeCodeSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
DisplayDeviceTypeCodeSequence.SimpleHolder,DisplaySubsystemSequence.Item
- Enclosing class:
- DisplayDeviceTypeCodeSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Display Device Type Code Sequence" (see
DisplayDeviceTypeCodeSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault DisplayDeviceTypeCodeSequenceAdds a new Display Device Type Code Sequence (seeDisplayDeviceTypeCodeSequence) with initial capacity 1 (seeensureDisplayDeviceTypeCodeSequence(int)) if it does not already exist.default DisplayDeviceTypeCodeSequenceensureDisplayDeviceTypeCodeSequence(int initialCapacity) Adds a new Display Device Type Code Sequence (seeDisplayDeviceTypeCodeSequence) if it does not already exist.default DisplayDeviceTypeCodeSequencedefault DisplayDeviceTypeCodeSequencenewDisplayDeviceTypeCodeSequence(int initialCapacity) Adds a new Display Device Type Code Sequence.default voidRemoves the Display Device Type Code Sequence (seeDisplayDeviceTypeCodeSequencewrap(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 Display Device Type Code Sequence (seeDisplayDeviceTypeCodeSequence)- Returns:
- A wrapper object implementing the
DisplayDeviceTypeCodeSequence.Holderinterface.
-
builder
- Returns:
- a
DisplayDeviceTypeCodeSequence.Holder.Builderto create Display Device Type Code Sequence Items with a fluent API.
-
builder
static DisplayDeviceTypeCodeSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes) - Parameters:
attributes- The Attributes to be wrapped by theDisplayDeviceTypeCodeSequence.Holder.Builder.- Returns:
- a
DisplayDeviceTypeCodeSequence.Holder.Builderto create Display Device Type Code Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getDisplayDeviceTypeCodeSequence
- Returns:
- the Display Device Type Code Sequence (see
DisplayDeviceTypeCodeSequence)
-
newDisplayDeviceTypeCodeSequence
Adds a new Display Device Type Code Sequence. (seeDisplayDeviceTypeCodeSequence)- Parameters:
initialCapacity- the initial capacity for the new Display Device Type Code Sequence
-
ensureDisplayDeviceTypeCodeSequence
Adds a new Display Device Type Code Sequence (seeDisplayDeviceTypeCodeSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Display Device Type Code Sequence is created.- Returns:
- Either the already existing Display Device Type Code Sequence (see
DisplayDeviceTypeCodeSequence) or a new one with capacityinitialCapacity.
-
ensureDisplayDeviceTypeCodeSequence
Adds a new Display Device Type Code Sequence (seeDisplayDeviceTypeCodeSequence) with initial capacity 1 (seeensureDisplayDeviceTypeCodeSequence(int)) if it does not already exist.- Returns:
- Either the already existing Display Device Type Code Sequence (see
DisplayDeviceTypeCodeSequence) or a new one with capacity 1.
-
containsDisplayDeviceTypeCodeSequence
default boolean containsDisplayDeviceTypeCodeSequence()- Returns:
- Whether it contains the Display Device Type Code Sequence (see
DisplayDeviceTypeCodeSequence)
-
removeDisplayDeviceTypeCodeSequence
default void removeDisplayDeviceTypeCodeSequence()Removes the Display Device Type Code Sequence (seeDisplayDeviceTypeCodeSequence
-