Interface Quantity.Holder

All Superinterfaces:
AttributesWrapper
All Known Implementing Classes:
Quantity.SimpleHolder, QuantitySequence.Item
Enclosing class:
Quantity

public static interface Quantity.Holder extends AttributesWrapper
A class implementing this interface can hold attributes which contain the DICOM tag "Quantity" (see Quantity)
  • Method Details

    • wrap

      static Quantity.Holder wrap(org.dcm4che3.data.Attributes attributes)
      Parameters:
      attributes - An attributes object containing the Quantity (see Quantity)
      Returns:
      A wrapper object implementing the Quantity.Holder interface.
    • builder

      static Quantity.Holder.Builder builder()
      Returns:
      a Quantity.Holder.Builder to create Quantity Items with a fluent API.
    • builder

      static Quantity.Holder.Builder builder(org.dcm4che3.data.Attributes attributes)
      Parameters:
      attributes - The Attributes to be wrapped by the Quantity.Holder.Builder.
      Returns:
      a Quantity.Holder.Builder to create Quantity Items with a fluent API. Instead of creating new Attributes it wraps the provided Attributes.
    • getQuantity

      default Quantity 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 (see Quantity