Interface Quantity.Holder
- All Superinterfaces:
AttributesWrapper
- All Known Implementing Classes:
Quantity.SimpleHolder,QuantitySequence.Item
- Enclosing class:
- Quantity
A class implementing this interface can hold attributes which contain the DICOM tag "Quantity" (see
Quantity)-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Quantity.Holder.Builderbuilder()static Quantity.Holder.Builderbuilder(org.dcm4che3.data.Attributes attributes) default booleandefault Quantitydefault voidRemoves the Quantity (seeQuantitystatic Quantity.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 Quantity (seeQuantity)- Returns:
- A wrapper object implementing the
Quantity.Holderinterface.
-
builder
- Returns:
- a
Quantity.Holder.Builderto create Quantity Items with a fluent API.
-
builder
- Parameters:
attributes- The Attributes to be wrapped by theQuantity.Holder.Builder.- Returns:
- a
Quantity.Holder.Builderto create Quantity Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
-
getQuantity
- Returns:
- the Quantity (see
Quantity)
-
containsQuantity
default boolean containsQuantity()- Returns:
- Whether it contains the Quantity (see
Quantity)
-
removeQuantity
default void removeQuantity()Removes the Quantity (seeQuantity
-