Package yapion.hierarchy.types
Class YAPIONValue<T>
- java.lang.Object
-
- yapion.hierarchy.typegroups.YAPIONAnyClosure
-
- yapion.hierarchy.typegroups.YAPIONAnyType
-
- yapion.hierarchy.typegroups.YAPIONValueType
-
- yapion.hierarchy.types.YAPIONValue<T>
-
- All Implemented Interfaces:
ObjectOutput
,ObjectPath
,ObjectSearch
,ObjectType
public class YAPIONValue<T> extends YAPIONValueType
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface yapion.hierarchy.typeinterfaces.ObjectSearch
ObjectSearch.YAPIONSearchResult<T extends YAPIONAnyType>
-
-
Field Summary
-
Fields inherited from interface yapion.hierarchy.typeinterfaces.ObjectOutput
indent
-
-
Constructor Summary
Constructors Constructor Description YAPIONValue(T value)
-
Method Summary
Modifier and Type Method Description YAPIONAnyType
copy()
boolean
equals(java.lang.Object o)
T
get()
YAPIONType
getType()
java.lang.String
getValueType()
int
hashCode()
static YAPIONValue
parseValue(java.lang.String s)
long
referenceValue()
<T extends AbstractOutput>
TtoJSON(T abstractOutput)
<T extends AbstractOutput>
TtoJSONLossy(T abstractOutput)
java.lang.String
toString()
<T extends AbstractOutput>
TtoYAPION(T abstractOutput)
static boolean
tryAssemble(java.lang.String s, java.lang.String regex, yapion.hierarchy.types.YAPIONValue.ParseType... possibleTypes)
-
Methods inherited from class yapion.hierarchy.typegroups.YAPIONAnyType
cacheReferenceValue, discardReferenceValue, get, get, getDepth, getParent, getParseTime, getParseTimeMillis, getPath, getPath, getReferenceValue, hasParent, hasReferenceValue, indent, isValuePresent, reducedIndent, removeParent, setParent
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface yapion.hierarchy.typeinterfaces.ObjectOutput
indent
-
-
-
-
Constructor Detail
-
YAPIONValue
public YAPIONValue(T value)
-
-
Method Detail
-
getType
public YAPIONType getType()
-
referenceValue
public long referenceValue()
- Specified by:
referenceValue
in classYAPIONAnyClosure
-
copy
public YAPIONAnyType copy()
- Overrides:
copy
in classYAPIONAnyType
-
toYAPION
public <T extends AbstractOutput> T toYAPION(T abstractOutput)
-
toJSON
public <T extends AbstractOutput> T toJSON(T abstractOutput)
-
toJSONLossy
public <T extends AbstractOutput> T toJSONLossy(T abstractOutput)
-
parseValue
public static YAPIONValue parseValue(java.lang.String s)
-
get
public T get()
-
getValueType
public java.lang.String getValueType()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
tryAssemble
public static boolean tryAssemble(java.lang.String s, java.lang.String regex, yapion.hierarchy.types.YAPIONValue.ParseType... possibleTypes)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-