Interface RangeMatchingSequence.Holder
-
- All Superinterfaces:
org.dcm4che.typeddicom.AttributesWrapper
- All Known Implementing Classes:
ScopeOfInventorySequence.Item
- Enclosing class:
- RangeMatchingSequence
public static interface RangeMatchingSequence.Holder extends org.dcm4che.typeddicom.AttributesWrapperA class implementing this interface can hold attributes which contain the DICOM tag "Range Matching Sequence" (seeRangeMatchingSequence)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classRangeMatchingSequence.Holder.Builder
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static RangeMatchingSequence.Holder.Builderbuilder()static RangeMatchingSequence.Holder.Builderbuilder(org.dcm4che3.data.Attributes attributes)default booleancontainsRangeMatchingSequence()default RangeMatchingSequenceensureRangeMatchingSequence()Adds a new Range Matching Sequence (seeRangeMatchingSequence) with initial capacity 1 (seeensureRangeMatchingSequence(int)) if it does not already exist.default RangeMatchingSequenceensureRangeMatchingSequence(int initialCapacity)Adds a new Range Matching Sequence (seeRangeMatchingSequence) if it does not already exist.default RangeMatchingSequencegetRangeMatchingSequence()default RangeMatchingSequencenewRangeMatchingSequence(int initialCapacity)Adds a new Range Matching Sequence.default voidremoveRangeMatchingSequence()Removes the Range Matching Sequence (seeRangeMatchingSequencestatic RangeMatchingSequence.Holderwrap(org.dcm4che3.data.Attributes attributes)
-
-
-
Method Detail
-
wrap
static RangeMatchingSequence.Holder wrap(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- an attributes object containing the Range Matching Sequence (seeRangeMatchingSequence)- Returns:
- a wrapper object implementing the
RangeMatchingSequence.Holderinterface.
-
builder
static RangeMatchingSequence.Holder.Builder builder()
- Returns:
- a
RangeMatchingSequence.Holder.Builderto create Range Matching Sequence Items with a fluent API.
-
builder
static RangeMatchingSequence.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
- Parameters:
attributes- the Attributes to be wrapped by theRangeMatchingSequence.Holder.Builder.- Returns:
- a
RangeMatchingSequence.Holder.Builderto create Range Matching Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getRangeMatchingSequence
default RangeMatchingSequence getRangeMatchingSequence()
- Returns:
- the Range Matching Sequence (see
RangeMatchingSequence)
-
newRangeMatchingSequence
default RangeMatchingSequence newRangeMatchingSequence(int initialCapacity)
Adds a new Range Matching Sequence. (seeRangeMatchingSequence)- Parameters:
initialCapacity- the initial capacity for the new Range Matching Sequence- Returns:
- the newly created RangeMatchingSequence.
-
ensureRangeMatchingSequence
default RangeMatchingSequence ensureRangeMatchingSequence(int initialCapacity)
Adds a new Range Matching Sequence (seeRangeMatchingSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- the initial capacity (seeArrayList(int)) if a new Range Matching Sequence is created.- Returns:
- either the already existing Range Matching Sequence (see
RangeMatchingSequence) or a new one with capacityinitialCapacity.
-
ensureRangeMatchingSequence
default RangeMatchingSequence ensureRangeMatchingSequence()
Adds a new Range Matching Sequence (seeRangeMatchingSequence) with initial capacity 1 (seeensureRangeMatchingSequence(int)) if it does not already exist.- Returns:
- either the already existing Range Matching Sequence (see
RangeMatchingSequence) or a new one with capacity 1.
-
containsRangeMatchingSequence
default boolean containsRangeMatchingSequence()
- Returns:
- whether it contains the Range Matching Sequence (see
RangeMatchingSequence)
-
removeRangeMatchingSequence
default void removeRangeMatchingSequence()
Removes the Range Matching Sequence (seeRangeMatchingSequence
-
-