Interface GeneralMatchingSequence.Holder
-
- All Superinterfaces:
org.dcm4che.typeddicom.AttributesWrapper
- All Known Implementing Classes:
GeneralMatchingSequence.SimpleHolder,ScopeOfInventorySequence.Item
- Enclosing class:
- GeneralMatchingSequence
public static interface GeneralMatchingSequence.Holder extends org.dcm4che.typeddicom.AttributesWrapperA class implementing this interface can hold attributes which contain the DICOM tag "General Matching Sequence" (seeGeneralMatchingSequence)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classGeneralMatchingSequence.Holder.Builder
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static GeneralMatchingSequence.Holder.Builderbuilder()static GeneralMatchingSequence.Holder.Builderbuilder(org.dcm4che3.data.Attributes attributes)default booleancontainsGeneralMatchingSequence()default GeneralMatchingSequenceensureGeneralMatchingSequence()Adds a new General Matching Sequence (seeGeneralMatchingSequence) with initial capacity 1 (seeensureGeneralMatchingSequence(int)) if it does not already exist.default GeneralMatchingSequenceensureGeneralMatchingSequence(int initialCapacity)Adds a new General Matching Sequence (seeGeneralMatchingSequence) if it does not already exist.default GeneralMatchingSequencegetGeneralMatchingSequence()default GeneralMatchingSequencenewGeneralMatchingSequence(int initialCapacity)Adds a new General Matching Sequence.default voidremoveGeneralMatchingSequence()Removes the General Matching Sequence (seeGeneralMatchingSequencestatic GeneralMatchingSequence.Holderwrap(org.dcm4che3.data.Attributes attributes)
-
-
-
Method Detail
-
wrap
static GeneralMatchingSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- an attributes object containing the General Matching Sequence (seeGeneralMatchingSequence)- Returns:
- a wrapper object implementing the
GeneralMatchingSequence.Holderinterface.
-
builder
static GeneralMatchingSequence.Holder.Builder builder()
- Returns:
- a
GeneralMatchingSequence.Holder.Builderto create General Matching Sequence Items with a fluent API.
-
builder
static GeneralMatchingSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- the Attributes to be wrapped by theGeneralMatchingSequence.Holder.Builder.- Returns:
- a
GeneralMatchingSequence.Holder.Builderto create General Matching Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getGeneralMatchingSequence
default GeneralMatchingSequence getGeneralMatchingSequence()
- Returns:
- the General Matching Sequence (see
GeneralMatchingSequence)
-
newGeneralMatchingSequence
default GeneralMatchingSequence newGeneralMatchingSequence(int initialCapacity)
Adds a new General Matching Sequence. (seeGeneralMatchingSequence)- Parameters:
initialCapacity- the initial capacity for the new General Matching Sequence- Returns:
- the newly created GeneralMatchingSequence.
-
ensureGeneralMatchingSequence
default GeneralMatchingSequence ensureGeneralMatchingSequence(int initialCapacity)
Adds a new General Matching Sequence (seeGeneralMatchingSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- the initial capacity (seeArrayList(int)) if a new General Matching Sequence is created.- Returns:
- either the already existing General Matching Sequence (see
GeneralMatchingSequence) or a new one with capacityinitialCapacity.
-
ensureGeneralMatchingSequence
default GeneralMatchingSequence ensureGeneralMatchingSequence()
Adds a new General Matching Sequence (seeGeneralMatchingSequence) with initial capacity 1 (seeensureGeneralMatchingSequence(int)) if it does not already exist.- Returns:
- either the already existing General Matching Sequence (see
GeneralMatchingSequence) or a new one with capacity 1.
-
containsGeneralMatchingSequence
default boolean containsGeneralMatchingSequence()
- Returns:
- whether it contains the General Matching Sequence (see
GeneralMatchingSequence)
-
removeGeneralMatchingSequence
default void removeGeneralMatchingSequence()
Removes the General Matching Sequence (seeGeneralMatchingSequence
-
-