Class HoconValue.HoconArray

java.lang.Object
org.apache.juneau.marshall.hocon.HoconValue
org.apache.juneau.marshall.hocon.HoconValue.HoconArray
Enclosing class:
HoconValue

public static final class HoconValue.HoconArray extends HoconValue
HOCON array (maps to List or array).
  • Constructor Details

  • Method Details

    • getType

      Description copied from class: HoconValue
      Returns the value type.
      Specified by:
      getType in class HoconValue
      Returns:
      The type.
    • getElements

      Returns the elements.
      Returns:
      An unmodifiable copy of the elements list.
    • add

      public void add(HoconValue element)
      Adds an element to this array.
      Parameters:
      element - The element to add.
    • setElements

      public void setElements(List<HoconValue> value)
      Replaces the contents of this array with the specified elements.
      Parameters:
      value - The new elements. Can be null to clear the array.
    • concat

      public void concat(HoconValue.HoconArray other)
      Concatenates another array (HOCON array concatenation).
      Parameters:
      other - The other array.
      Must not be null.