Package org.apache.juneau.marshall.hocon
Class HoconValue.HoconArray
java.lang.Object
org.apache.juneau.marshall.hocon.HoconValue
org.apache.juneau.marshall.hocon.HoconValue.HoconArray
- Enclosing class:
- HoconValue
HOCON array (maps to List or array).
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.juneau.marshall.hocon.HoconValue
HoconValue.HoconArray, HoconValue.HoconBoolean, HoconValue.HoconConcat, HoconValue.HoconNull, HoconValue.HoconNumber, HoconValue.HoconObject, HoconValue.HoconString, HoconValue.HoconSubstitution, HoconValue.Type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(HoconValue element) Adds an element to this array.voidconcat(HoconValue.HoconArray other) Concatenates another array (HOCON array concatenation).Returns the elements.getType()Returns the value type.voidsetElements(List<HoconValue> value) Replaces the contents of this array with the specified elements.
-
Constructor Details
-
HoconArray
public HoconArray()
-
-
Method Details
-
getType
Description copied from class:HoconValueReturns the value type.- Specified by:
getTypein classHoconValue- Returns:
- The type.
-
getElements
Returns the elements.- Returns:
- An unmodifiable copy of the elements list.
-
add
Adds an element to this array.- Parameters:
element- The element to add.
-
setElements
Replaces the contents of this array with the specified elements.- Parameters:
value- The new elements. Can benull to clear the array.
-
concat
Concatenates another array (HOCON array concatenation).- Parameters:
other- The other array.
Must not benull .
-