Package yapion.hierarchy.types
Class YAPIONPointer
- java.lang.Object
-
- yapion.hierarchy.api.groups.YAPIONAnyType
-
- yapion.hierarchy.api.groups.YAPIONValueType
-
- yapion.hierarchy.types.YAPIONPointer
-
- All Implemented Interfaces:
ObjectOutput
,ObjectPath
,ObjectSearch
,ObjectType
public class YAPIONPointer 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 YAPIONPointer(java.lang.String pointerID)
YAPIONPointer(YAPIONObject yapionObject)
YAPIONPointer(YAPIONObject yapionObject, ReferenceFunction referenceFunction)
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.util.Optional<ObjectSearch.YAPIONSearchResult<?>>
get(java.lang.String key)
long
getPointerID()
java.lang.String
getPointerIDString()
YAPIONType
getType()
int
hashCode()
long
referenceValue(@NonNull ReferenceFunction referenceFunction)
<T extends AbstractOutput>
TtoJSON(T abstractOutput)
<T extends AbstractOutput>
TtoJSONLossy(T abstractOutput)
java.lang.String
toString()
<T extends AbstractOutput>
TtoYAPION(T abstractOutput)
-
Methods inherited from class yapion.hierarchy.api.groups.YAPIONAnyType
cacheReferenceValue, copy, discardReferenceValue, get, getDepth, getParent, getParseTime, getParseTimeMillis, getParseTimeMillisAsLong, getPath, getPath, getReferenceValue, hasParent, hasReferenceValue, indent, isValuePresent, reducedIndent, referenceValueProvider, 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
-
YAPIONPointer
public YAPIONPointer(YAPIONObject yapionObject)
-
YAPIONPointer
public YAPIONPointer(YAPIONObject yapionObject, ReferenceFunction referenceFunction)
-
YAPIONPointer
public YAPIONPointer(java.lang.String pointerID)
-
-
Method Detail
-
getType
public YAPIONType getType()
-
referenceValue
public long referenceValue(@NonNull @NonNull ReferenceFunction referenceFunction)
- Specified by:
referenceValue
in interfaceObjectType
- Overrides:
referenceValue
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)
-
getPointerID
public long getPointerID()
-
getPointerIDString
public java.lang.String getPointerIDString()
-
get
public java.util.Optional<ObjectSearch.YAPIONSearchResult<?>> get(java.lang.String key)
- Specified by:
get
in interfaceObjectSearch
- Overrides:
get
in classYAPIONAnyType
-
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
-
-