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>
-
-
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 booleanequals(java.lang.Object o)java.util.Optional<ObjectSearch.YAPIONSearchResult<?>>get(java.lang.String key)longgetPointerID()java.lang.StringgetPointerIDString()YAPIONTypegetType()YAPIONObjectgetYAPIONObject()inthashCode()longreferenceValue(@NonNull ReferenceFunction referenceFunction)voidsetYAPIONObject(YAPIONObject yapionObject)<T extends AbstractOutput>
TtoJSON(T abstractOutput)<T extends AbstractOutput>
TtoJSONLossy(T abstractOutput)java.lang.StringtoString()<T extends AbstractOutput>
TtoYAPION(T abstractOutput)-
Methods inherited from class yapion.hierarchy.api.groups.YAPIONAnyType
cacheReferenceValue, copy, discardReferenceValue, get, getDepth, getParent, getPath, getPath, getReferenceValue, hasParent, hasReferenceValue, isValuePresent, 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.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:
referenceValuein interfaceObjectType- Overrides:
referenceValuein 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)
-
setYAPIONObject
public void setYAPIONObject(YAPIONObject yapionObject)
-
getYAPIONObject
public YAPIONObject getYAPIONObject()
-
getPointerID
public long getPointerID()
-
getPointerIDString
public java.lang.String getPointerIDString()
-
get
public java.util.Optional<ObjectSearch.YAPIONSearchResult<?>> get(java.lang.String key)
- Specified by:
getin interfaceObjectSearch- Overrides:
getin classYAPIONAnyType
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-