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 YAPIONMapadd(YAPIONAnyType key, YAPIONAnyType value)YAPIONMapadd(YAPIONVariable variable)YAPIONMapadd(YAPIONParserMapMapping mapping)YAPIONMapadd(YAPIONParserMapObject variable)longdeepSize()booleanequals(java.lang.Object o)YAPIONMapfinishMapping()java.util.Optional<ObjectSearch.YAPIONSearchResult<? extends YAPIONAnyType>>get(java.lang.String key)YAPIONAnyTypeget(YAPIONAnyType key)java.util.List<YAPIONAnyType>getAllValues()java.util.List<YAPIONAnyType>getKeys()java.lang.StringgetPath(YAPIONAnyType yapionAnyType)YAPIONTypegetType()inthashCode()booleanisEmpty()intlength()longreferenceValue()intsize()<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.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:
referenceValuein classYAPIONAnyClosure
-
getPath
public java.lang.String getPath(YAPIONAnyType yapionAnyType)
- Specified by:
getPathin interfaceObjectPath- Overrides:
getPathin 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(YAPIONAnyType key, YAPIONAnyType value)
-
add
public YAPIONMap add(YAPIONVariable variable)
-
add
public YAPIONMap add(YAPIONParserMapObject variable)
-
add
public YAPIONMap add(YAPIONParserMapMapping mapping)
-
size
public int size()
- Specified by:
sizein classYAPIONDataType
-
deepSize
public long deepSize()
- Specified by:
deepSizein classYAPIONDataType
-
length
public int length()
- Specified by:
lengthin classYAPIONDataType
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin classYAPIONDataType
-
getAllValues
public java.util.List<YAPIONAnyType> getAllValues()
- Specified by:
getAllValuesin classYAPIONDataType
-
finishMapping
public YAPIONMap finishMapping()
-
get
public YAPIONAnyType get(YAPIONAnyType key)
-
getKeys
public java.util.List<YAPIONAnyType> getKeys()
-
get
public java.util.Optional<ObjectSearch.YAPIONSearchResult<? extends YAPIONAnyType>> 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
-
-