Package org.comroid.uniform.node
Class UniValueNode<T>
- java.lang.Object
-
- org.comroid.uniform.node.UniNode
-
- org.comroid.uniform.node.UniValueNode<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUniValueNode.Adapter<T>-
Nested classes/interfaces inherited from class org.comroid.uniform.node.UniNode
UniNode.Type
-
-
Field Summary
-
Fields inherited from class org.comroid.uniform.node.UniNode
serializationAdapter
-
-
Constructor Summary
Constructors Constructor Description UniValueNode(SerializationAdapter<?,?,?> serializationAdapter, UniValueNode.Adapter<T> adapter)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> Ras(ValueType<R> type)booleanasBoolean(boolean fallback)charasChar(char fallback)doubleasDouble(double fallback)floatasFloat(float fallback)intasInt(int fallback)longasLong(long fallback)java.lang.ObjectasRaw(@Nullable java.lang.Object fallback)shortasShort(short fallback)java.lang.StringasString(@Nullable java.lang.String fallback)UniValueNodecopyFrom(@NotNull UniNode it)@NotNull UniNodeget(int index)@NotNull UniNodeget(java.lang.String fieldName)java.lang.ObjectgetBaseNode()booleanhas(java.lang.String fieldName)static <T> UniValueNode<T>nullNode()intsize()-
Methods inherited from class org.comroid.uniform.node.UniNode
add, addArray, addNull, addObject, asArrayNode, asBoolean, asChar, asDouble, asFloat, asInt, asList, asLong, asNodeList, asObjectNode, asShort, asString, asValueNode, generateValueNode, getSerializationAdapter, getSerializedString, getType, has, isArrayNode, isNull, isNull, isObjectNode, isValueNode, process, process, put, put, putArray, putArray, putNull, putNull, putObject, putObject, toString, unsupported, wrap, wrap
-
-
-
-
Constructor Detail
-
UniValueNode
public UniValueNode(SerializationAdapter<?,?,?> serializationAdapter, UniValueNode.Adapter<T> adapter)
-
-
Method Detail
-
getBaseNode
public final java.lang.Object getBaseNode()
- Specified by:
getBaseNodein classUniNode
-
nullNode
public static <T> UniValueNode<T> nullNode()
-
get
@NotNull public @NotNull UniNode get(java.lang.String fieldName)
-
copyFrom
public UniValueNode copyFrom(@NotNull @NotNull UniNode it)
-
asRaw
public java.lang.Object asRaw(@Nullable @Nullable java.lang.Object fallback)
-
asString
public java.lang.String asString(@Nullable @Nullable java.lang.String fallback)
-
-