Interface QuantitySequence.Holder

All Superinterfaces:
AttributesWrapper
All Known Implementing Classes:
BillingSuppliesAndDevicesSequence.Item
Enclosing class:
QuantitySequence

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

    • wrap

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

      default QuantitySequence getQuantitySequence()
      Returns:
      the Quantity Sequence (see QuantitySequence)
    • newQuantitySequence

      default QuantitySequence newQuantitySequence(int initialCapacity)
      Adds a new Quantity Sequence. (see QuantitySequence)
      Parameters:
      initialCapacity - the initial capacity for the new Quantity Sequence
    • ensureQuantitySequence

      default QuantitySequence ensureQuantitySequence(int initialCapacity)
      Adds a new Quantity Sequence (see QuantitySequence) if it does not already exist. (see Attributes.ensureSequence(int, int)
      Parameters:
      initialCapacity - The initial capacity (see ArrayList(int)) if a new Quantity Sequence is created.
      Returns:
      Either the already existing Quantity Sequence (see QuantitySequence) or a new one with capacity initialCapacity.
    • ensureQuantitySequence

      default QuantitySequence ensureQuantitySequence()
      Adds a new Quantity Sequence (see QuantitySequence) with initial capacity 1 (see ensureQuantitySequence(int)) if it does not already exist.
      Returns:
      Either the already existing Quantity Sequence (see QuantitySequence) or a new one with capacity 1.
    • containsQuantitySequence

      default boolean containsQuantitySequence()
      Returns:
      Whether it contains the Quantity Sequence (see QuantitySequence)
    • removeQuantitySequence

      default void removeQuantitySequence()
      Removes the Quantity Sequence (see QuantitySequence