Interface HPGLPenSequence.Holder
-
- All Superinterfaces:
org.dcm4che.typeddicom.AttributesWrapper
- All Known Implementing Classes:
HPGLDocumentSequence.Item,HPGLPenSequence.SimpleHolder
- Enclosing class:
- HPGLPenSequence
public static interface HPGLPenSequence.Holder extends org.dcm4che.typeddicom.AttributesWrapperA class implementing this interface can hold attributes which contain the DICOM tag "HPGL Pen Sequence" (seeHPGLPenSequence)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classHPGLPenSequence.Holder.Builder
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static HPGLPenSequence.Holder.Builderbuilder()static HPGLPenSequence.Holder.Builderbuilder(org.dcm4che3.data.Attributes attributes)default booleancontainsHPGLPenSequence()default HPGLPenSequenceensureHPGLPenSequence()Adds a new HPGL Pen Sequence (seeHPGLPenSequence) with initial capacity 1 (seeensureHPGLPenSequence(int)) if it does not already exist.default HPGLPenSequenceensureHPGLPenSequence(int initialCapacity)Adds a new HPGL Pen Sequence (seeHPGLPenSequence) if it does not already exist.default HPGLPenSequencegetHPGLPenSequence()default HPGLPenSequencenewHPGLPenSequence(int initialCapacity)Adds a new HPGL Pen Sequence.default voidremoveHPGLPenSequence()Removes the HPGL Pen Sequence (seeHPGLPenSequencestatic HPGLPenSequence.Holderwrap(org.dcm4che3.data.Attributes attributes)
-
-
-
Method Detail
-
wrap
static HPGLPenSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- an attributes object containing the HPGL Pen Sequence (seeHPGLPenSequence)- Returns:
- a wrapper object implementing the
HPGLPenSequence.Holderinterface.
-
builder
static HPGLPenSequence.Holder.Builder builder()
- Returns:
- a
HPGLPenSequence.Holder.Builderto create HPGL Pen Sequence Items with a fluent API.
-
builder
static HPGLPenSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- the Attributes to be wrapped by theHPGLPenSequence.Holder.Builder.- Returns:
- a
HPGLPenSequence.Holder.Builderto create HPGL Pen Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getHPGLPenSequence
default HPGLPenSequence getHPGLPenSequence()
- Returns:
- the HPGL Pen Sequence (see
HPGLPenSequence)
-
newHPGLPenSequence
default HPGLPenSequence newHPGLPenSequence(int initialCapacity)
Adds a new HPGL Pen Sequence. (seeHPGLPenSequence)- Parameters:
initialCapacity- the initial capacity for the new HPGL Pen Sequence- Returns:
- the newly created HPGLPenSequence.
-
ensureHPGLPenSequence
default HPGLPenSequence ensureHPGLPenSequence(int initialCapacity)
Adds a new HPGL Pen Sequence (seeHPGLPenSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- the initial capacity (seeArrayList(int)) if a new HPGL Pen Sequence is created.- Returns:
- either the already existing HPGL Pen Sequence (see
HPGLPenSequence) or a new one with capacityinitialCapacity.
-
ensureHPGLPenSequence
default HPGLPenSequence ensureHPGLPenSequence()
Adds a new HPGL Pen Sequence (seeHPGLPenSequence) with initial capacity 1 (seeensureHPGLPenSequence(int)) if it does not already exist.- Returns:
- either the already existing HPGL Pen Sequence (see
HPGLPenSequence) or a new one with capacity 1.
-
containsHPGLPenSequence
default boolean containsHPGLPenSequence()
- Returns:
- whether it contains the HPGL Pen Sequence (see
HPGLPenSequence)
-
removeHPGLPenSequence
default void removeHPGLPenSequence()
Removes the HPGL Pen Sequence (seeHPGLPenSequence
-
-