Package org.yaml.snakeyaml.representer
Class SafeRepresenter.RepresentPrimitiveArray
java.lang.Object
org.yaml.snakeyaml.representer.SafeRepresenter.RepresentPrimitiveArray
- All Implemented Interfaces:
Represent
- Enclosing class:
SafeRepresenter
Represents primitive arrays, such as short[] and float[], by converting them into equivalent
List and List using the appropriate autoboxing type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasBooleanList
(Object in) asByteList
(Object in) asCharList
(Object in) asDoubleList
(Object in) asFloatList
(Object in) asLongList
(Object in) asShortList
(Object in) representData
(Object data) Create a Node
-
Constructor Details
-
RepresentPrimitiveArray
protected RepresentPrimitiveArray()
-
-
Method Details
-
representData
Description copied from interface:Represent
Create a Node- Specified by:
representData
in interfaceRepresent
- Parameters:
data
- the instance to represent- Returns:
- Node to dump
-
asByteList
-
asShortList
-
asIntList
-
asLongList
-
asFloatList
-
asDoubleList
-
asCharList
-
asBooleanList
-