Package yapion.hierarchy.types
Class YAPIONMap
- java.lang.Object
-
- All Implemented Interfaces:
ObjectOutput
,ObjectPath
,ObjectSearch
,ObjectType
public class YAPIONMap extends YAPIONMappingType
-
-
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 YAPIONMap()
-
Method Summary
Modifier and Type Method Description YAPIONMap
add(@NonNull YAPIONAnyType key, @NonNull YAPIONAnyType value)
YAPIONMap
add(@NonNull YAPIONVariable variable)
YAPIONMap
add(@NonNull YAPIONParserMapMapping mapping)
YAPIONMap
add(@NonNull YAPIONParserMapObject variable)
long
deepSize()
boolean
equals(java.lang.Object o)
YAPIONMap
finishMapping()
java.util.Optional<ObjectSearch.YAPIONSearchResult<? extends YAPIONAnyType>>
get(@NonNull java.lang.String key)
YAPIONAnyType
get(@NonNull YAPIONAnyType key)
java.util.List<YAPIONAnyType>
getAllValues()
java.util.List<YAPIONAnyType>
getKeys()
java.lang.String
getPath(YAPIONAnyType yapionAnyType)
YAPIONType
getType()
int
hashCode()
boolean
isEmpty()
int
length()
long
referenceValue()
int
size()
<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.typegroups.YAPIONAnyType
cacheReferenceValue, copy, discardReferenceValue, get, getDepth, getParent, getParseTime, getParseTimeMillis, 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
-
-
-
-
Method Detail
-
getType
public YAPIONType getType()
-
referenceValue
public long referenceValue()
- Specified by:
referenceValue
in classYAPIONAnyClosure
-
getPath
public java.lang.String getPath(YAPIONAnyType yapionAnyType)
- Specified by:
getPath
in interfaceObjectPath
- Overrides:
getPath
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)
-
add
public YAPIONMap add(@NonNull @NonNull YAPIONAnyType key, @NonNull @NonNull YAPIONAnyType value)
-
add
public YAPIONMap add(@NonNull @NonNull YAPIONVariable variable)
-
add
public YAPIONMap add(@NonNull @NonNull YAPIONParserMapObject variable)
-
add
public YAPIONMap add(@NonNull @NonNull YAPIONParserMapMapping mapping)
-
size
public int size()
- Specified by:
size
in classYAPIONDataType
-
deepSize
public long deepSize()
- Specified by:
deepSize
in classYAPIONDataType
-
length
public int length()
- Specified by:
length
in classYAPIONDataType
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in classYAPIONDataType
-
getAllValues
public java.util.List<YAPIONAnyType> getAllValues()
- Specified by:
getAllValues
in classYAPIONDataType
-
finishMapping
public YAPIONMap finishMapping()
-
get
public YAPIONAnyType get(@NonNull @NonNull YAPIONAnyType key)
-
getKeys
public java.util.List<YAPIONAnyType> getKeys()
-
get
public java.util.Optional<ObjectSearch.YAPIONSearchResult<? extends YAPIONAnyType>> get(@NonNull @NonNull 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
-
-