Package yapion.hierarchy.types
Class YAPIONValue<T>
- java.lang.Object
-
- yapion.hierarchy.api.groups.YAPIONAnyType
-
- yapion.hierarchy.api.groups.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.api.ObjectSearch
ObjectSearch.YAPIONSearchResult<T extends YAPIONAnyType>
-
-
Field Summary
-
Fields inherited from interface yapion.hierarchy.api.ObjectOutput
indentString
-
-
Constructor Summary
Constructors Constructor Description YAPIONValue(T value)
-
Method Summary
Modifier and Type Method Description YAPIONAnyType
copy()
Optional API.boolean
equals(java.lang.Object o)
T
get()
YAPIONType
getType()
java.lang.String
getValueType()
int
hashCode()
static YAPIONValue
parseValue(java.lang.String s)
protected long
referenceValueProvider(ReferenceFunction referenceFunction)
<T extends AbstractOutput>
TtoJSON(T abstractOutput)
<T extends AbstractOutput>
TtoJSONLossy(T abstractOutput)
java.lang.String
toString()
<T extends AbstractOutput>
TtoYAPION(T abstractOutput)
static boolean
validType(java.lang.Class<?> t)
static <T> boolean
validType(T t)
-
Methods inherited from class yapion.hierarchy.api.groups.YAPIONAnyType
cacheReferenceValue, discardReferenceValue, get, get, getDepth, getParent, getParseTime, getParseTimeMillis, getParseTimeMillisAsLong, getPath, getPath, getReferenceValue, hasParent, hasReferenceValue, indent, isValuePresent, reducedIndent, referenceValue, removeParent, setParent
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface yapion.hierarchy.api.ObjectOutput
indent
-
Methods inherited from interface yapion.hierarchy.api.ObjectType
referenceValue
-
-
-
-
Constructor Detail
-
YAPIONValue
public YAPIONValue(T value)
-
-
Method Detail
-
getType
public YAPIONType getType()
-
referenceValueProvider
protected long referenceValueProvider(ReferenceFunction referenceFunction)
- Overrides:
referenceValueProvider
in classYAPIONAnyType
-
copy
public YAPIONAnyType copy()
Description copied from class:YAPIONAnyType
Optional API.- 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)
-
validType
public static <T> boolean validType(T t)
-
validType
public static boolean validType(java.lang.Class<?> t)
-
get
public T get()
-
getValueType
public java.lang.String getValueType()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-