Class StandardRepresenter.RepresentPrimitiveArray
java.lang.Object
org.snakeyaml.engine.v2.representer.StandardRepresenter.RepresentPrimitiveArray
- All Implemented Interfaces:
RepresentToNode
- Enclosing class:
StandardRepresenter
Represents primitive arrays, such as short[] and float[], by converting them into equivalent
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
public RepresentPrimitiveArray()
-
-
Method Details
-
representData
Description copied from interface:RepresentToNode
Create a Node- Specified by:
representData
in interfaceRepresentToNode
- Parameters:
data
- the instance to represent- Returns:
- Node to dump
-
asByteList
-
asShortList
-
asIntList
-
asLongList
-
asFloatList
-
asDoubleList
-
asCharList
-
asBooleanList
-