Package com.yahoo.config
Class NodeVector<NODE>
java.lang.Object
com.yahoo.config.NodeVector<NODE>
- All Implemented Interfaces:
Iterable<NODE>,Collection<NODE>,List<NODE>
- Direct Known Subclasses:
InnerNodeVector,LeafNodeVector
A NodeVector represents an array declared with '[]' in a config definition file.
It is a List that stores nodes with a given type. A given default node must
be given, and this node will be cloned as the NodeVector size are increased.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends NODE> c) booleanaddAll(Collection<? extends NODE> c) voidclear()booleanbooleancontainsAll(Collection<?> c) booleanget(int index) inthashCode()intbooleanisEmpty()iterator()intintlength()Returns the number of elements in this NodeVector.listIterator(int index) remove(int index) booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()subList(int fromIndex, int toIndex) Object[]toArray()<T> T[]toArray(T[] a) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
replaceAll, sort, spliterator
-
Field Details
-
vector
-
-
Constructor Details
-
NodeVector
public NodeVector()
-
-
Method Details
-
length
public int length()Returns the number of elements in this NodeVector. Alias for size().- Returns:
- the number of elements in this NodeVector.
-
add
-
add
-
addAll
-
addAll
-
clear
public void clear() -
remove
-
remove
-
removeAll
-
retainAll
-
set
-
contains
-
containsAll
- Specified by:
containsAllin interfaceCollection<NODE>- Specified by:
containsAllin interfaceList<NODE>
-
equals
-
hashCode
public int hashCode() -
get
-
indexOf
-
isEmpty
public boolean isEmpty() -
iterator
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<NODE>
-
listIterator
- Specified by:
listIteratorin interfaceList<NODE>
-
listIterator
- Specified by:
listIteratorin interfaceList<NODE>
-
size
public int size() -
subList
-
toArray
-
toArray
public <T> T[] toArray(T[] a)
-