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 TypeMethodDescriptionbooleanfilterObjects(Predicate<ObjectNode> predicate) findObjectNode(Predicate<ObjectNode> predicate) get(int index) getArray(int index) getBigDecimal(int i) getBigInteger(int i) booleangetBoolean(int index) getBooleanNode(int index) doublegetDouble(int index) double[]floatgetFloat(int index) float[]intgetInt(int index) int[]longgetLong(int index) long[]getNodeAt(int index) getNullNode(int index) getNumberNode(int index) getObject(int index) getString(int index) getStringNode(int index) inthashCode()intlength()lookupNodeAt(int index) <R> List<R><R> List<R>mapObjectNode(Function<ObjectNode, ? extends R> mapper) intsize()tokens()toString()type()Methods inherited from class java.util.AbstractList
add, add, addAll, clear, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArrayMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.CharSequence
chars, codePoints, isEmptyMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface io.nats.jparse.node.CollectionNode
asArray, asObject, isCollection, isScalar, lookupNodeMethods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArrayMethods inherited from interface io.nats.jparse.node.Node
asCollection, asScalar, charAt, originalCharSequence, originalString, subSequence, toJsonCharSequence, toJsonString
-
Constructor Details
-
ArrayNode
-
-
Method Details
-
childrenTokens
- Specified by:
childrenTokensin interfaceCollectionNode
-
getNode
- Specified by:
getNodein 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:
lengthin interfaceCharSequence- Specified by:
lengthin interfaceNode
-
type
-
tokens
-
rootElementToken
- Specified by:
rootElementTokenin interfaceNode
-
charSource
- Specified by:
charSourcein interfaceNode
-
get
-
equals
- Specified by:
equalsin interfaceCollection<Node>- Specified by:
equalsin interfaceList<Node>- Overrides:
equalsin classAbstractList<Node>
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<Node>- Specified by:
hashCodein interfaceList<Node>- Overrides:
hashCodein classAbstractList<Node>
-
size
public int size()- Specified by:
sizein interfaceCollection<Node>- Specified by:
sizein interfaceList<Node>- Specified by:
sizein classAbstractCollection<Node>
-
toString
- Specified by:
toStringin interfaceCharSequence- Overrides:
toStringin classAbstractCollection<Node>
-
mapObjectNode
-
map
-
findObjectNode
-
find
-
filterObjects
-
filter
-