Package io.nats.jparse.node
Class ArrayNode
- All Implemented Interfaces:
CollectionNode
,Node
,CharSequence
,Iterable<Node>
,Collection<Node>
,List<Node>
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
ConstructorsConstructorDescriptionArrayNode
(TokenSubList tokens, CharSource source, boolean objectsKeysCanBeEncoded) -
Method Summary
Modifier and TypeMethodDescriptionboolean
filterObjects
(Predicate<ObjectNode> predicate) findObjectNode
(Predicate<ObjectNode> predicate) get
(int index) getArray
(int index) getBigDecimal
(int i) getBigInteger
(int i) boolean
getBoolean
(int index) getBooleanNode
(int index) double
getDouble
(int index) double[]
float
getFloat
(int index) float[]
int
getInt
(int index) int[]
long
getLong
(int index) long[]
getNodeAt
(int index) getNullNode
(int index) getNumberNode
(int index) getObject
(int index) getString
(int index) getStringNode
(int index) int
hashCode()
int
length()
lookupNodeAt
(int index) <R> List<R>
<R> List<R>
mapObjectNode
(Function<ObjectNode, ? extends R> mapper) int
size()
tokens()
toString()
type()
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.CharSequence
chars, codePoints, isEmpty
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface io.nats.jparse.node.CollectionNode
asArray, asObject, isCollection, isScalar, lookupNode
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
Methods inherited from interface io.nats.jparse.node.Node
asCollection, asScalar, charAt, originalCharSequence, originalString, subSequence, toJsonCharSequence, toJsonString
-
Constructor Details
-
ArrayNode
-
-
Method Details
-
childrenTokens
- Specified by:
childrenTokens
in interfaceCollectionNode
-
getNode
- Specified by:
getNode
in interfaceCollectionNode
-
getNodeAt
-
lookupNodeAt
-
getLong
public long getLong(int index) -
getDouble
public double getDouble(int index) -
getDoubleArray
public double[] getDoubleArray() -
getFloatArray
public float[] getFloatArray() -
getBigDecimalArray
-
getBigIntegerArray
-
getIntArray
public int[] getIntArray() -
getLongArray
public long[] getLongArray() -
getNullNode
-
getInt
public int getInt(int index) -
getFloat
public float getFloat(int index) -
getNumberNode
-
getBigDecimal
-
getBigInteger
-
getStringNode
-
getString
-
getObject
-
getArray
-
getBooleanNode
-
getBoolean
public boolean getBoolean(int index) -
length
public int length()- Specified by:
length
in interfaceCharSequence
- Specified by:
length
in interfaceNode
-
type
-
tokens
-
rootElementToken
- Specified by:
rootElementToken
in interfaceNode
-
charSource
- Specified by:
charSource
in interfaceNode
-
get
-
equals
- Specified by:
equals
in interfaceCollection<Node>
- Specified by:
equals
in interfaceList<Node>
- Overrides:
equals
in classAbstractList<Node>
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<Node>
- Specified by:
hashCode
in interfaceList<Node>
- Overrides:
hashCode
in classAbstractList<Node>
-
size
public int size()- Specified by:
size
in interfaceCollection<Node>
- Specified by:
size
in interfaceList<Node>
- Specified by:
size
in classAbstractCollection<Node>
-
toString
- Specified by:
toString
in interfaceCharSequence
- Overrides:
toString
in classAbstractCollection<Node>
-
mapObjectNode
-
map
-
findObjectNode
-
find
-
filterObjects
-
filter
-