Interface LineSequence.Holder

All Superinterfaces:
AttributesWrapper
All Known Implementing Classes:
LineSequence.SimpleHolder, SurfaceMeshPrimitivesSequence.Item
Enclosing class:
LineSequence

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

    • wrap

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

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

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

      default LineSequence getLineSequence()
      Returns:
      the Line Sequence (see LineSequence)
    • newLineSequence

      default LineSequence newLineSequence(int initialCapacity)
      Adds a new Line Sequence. (see LineSequence)
      Parameters:
      initialCapacity - the initial capacity for the new Line Sequence
    • ensureLineSequence

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

      default LineSequence ensureLineSequence()
      Adds a new Line Sequence (see LineSequence) with initial capacity 1 (see ensureLineSequence(int)) if it does not already exist.
      Returns:
      Either the already existing Line Sequence (see LineSequence) or a new one with capacity 1.
    • containsLineSequence

      default boolean containsLineSequence()
      Returns:
      Whether it contains the Line Sequence (see LineSequence)
    • removeLineSequence

      default void removeLineSequence()
      Removes the Line Sequence (see LineSequence