Package yapion.hierarchy.types
Class YAPIONArray
- java.lang.Object
-
- yapion.hierarchy.typegroups.YAPIONAnyClosure
-
- yapion.hierarchy.typegroups.YAPIONAnyType
-
- yapion.hierarchy.typegroups.YAPIONDataType
-
- yapion.hierarchy.types.YAPIONArray
-
- All Implemented Interfaces:
ObjectOutput
,ObjectPath
,ObjectSearch
,ObjectType
public class YAPIONArray extends YAPIONDataType
-
-
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 YAPIONArray()
-
Method Summary
Modifier and Type Method Description YAPIONArray
add(@NonNull YAPIONAnyType yapionAnyType)
long
deepSize()
boolean
equals(java.lang.Object o)
YAPIONAnyType
get(int index)
java.util.Optional<ObjectSearch.YAPIONSearchResult<? extends YAPIONAnyType>>
get(@NonNull java.lang.String key)
java.util.List<YAPIONAnyType>
getAllValues()
java.lang.String
getPath(YAPIONAnyType yapionAnyType)
YAPIONType
getType()
int
hashCode()
boolean
isEmpty()
int
length()
long
referenceValue()
YAPIONArray
set(int index, @NonNull YAPIONAnyType yapionAnyType)
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)
-
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
-
get
public YAPIONAnyType get(int index)
-
add
public YAPIONArray add(@NonNull @NonNull YAPIONAnyType yapionAnyType)
-
set
public YAPIONArray set(int index, @NonNull @NonNull YAPIONAnyType yapionAnyType)
-
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
-
-