Interface RouteSegmentSequence.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
RouteSegmentSequence.SimpleHolder
- Enclosing class:
- RouteSegmentSequence
A class implementing this interface can hold attributes which contain the DICOM tag "Route Segment Sequence" (see
RouteSegmentSequence)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(org.dcm4che3.data.Attributes attributes) default booleandefault RouteSegmentSequenceAdds a new Route Segment Sequence (seeRouteSegmentSequence) with initial capacity 1 (seeensureRouteSegmentSequence(int)) if it does not already exist.default RouteSegmentSequenceensureRouteSegmentSequence(int initialCapacity) Adds a new Route Segment Sequence (seeRouteSegmentSequence) if it does not already exist.default RouteSegmentSequencedefault RouteSegmentSequencenewRouteSegmentSequence(int initialCapacity) Adds a new Route Segment Sequence.default voidRemoves the Route Segment Sequence (seeRouteSegmentSequencestatic RouteSegmentSequence.Holderwrap(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 Route Segment Sequence (seeRouteSegmentSequence)- Returns:
- A wrapper object implementing the
RouteSegmentSequence.Holderinterface.
-
builder
- Returns:
- a
RouteSegmentSequence.Holder.Builderto create Route Segment Sequence Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theRouteSegmentSequence.Holder.Builder.- Returns:
- a
RouteSegmentSequence.Holder.Builderto create Route Segment Sequence Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getRouteSegmentSequence
- Returns:
- the Route Segment Sequence (see
RouteSegmentSequence)
-
newRouteSegmentSequence
Adds a new Route Segment Sequence. (seeRouteSegmentSequence)- Parameters:
initialCapacity- the initial capacity for the new Route Segment Sequence
-
ensureRouteSegmentSequence
Adds a new Route Segment Sequence (seeRouteSegmentSequence) if it does not already exist. (seeAttributes.ensureSequence(int, int)- Parameters:
initialCapacity- The initial capacity (seeArrayList(int)) if a new Route Segment Sequence is created.- Returns:
- Either the already existing Route Segment Sequence (see
RouteSegmentSequence) or a new one with capacityinitialCapacity.
-
ensureRouteSegmentSequence
Adds a new Route Segment Sequence (seeRouteSegmentSequence) with initial capacity 1 (seeensureRouteSegmentSequence(int)) if it does not already exist.- Returns:
- Either the already existing Route Segment Sequence (see
RouteSegmentSequence) or a new one with capacity 1.
-
containsRouteSegmentSequence
default boolean containsRouteSegmentSequence()- Returns:
- Whether it contains the Route Segment Sequence (see
RouteSegmentSequence)
-
removeRouteSegmentSequence
default void removeRouteSegmentSequence()Removes the Route Segment Sequence (seeRouteSegmentSequence
-