Package hudson.slaves
Class NodeList
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<Node>
-
- hudson.slaves.NodeList
-
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<Node>,Collection<Node>,List<Node>,RandomAccess
public final class NodeList extends ArrayList<Node>
CopyOnWriteArrayListforNodethat has special serialization semantics of not serializingEphemeralNodes.- Author:
- Kohsuke Kawaguchi
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNodeList.ConverterImplConverterimplementation for XStream.
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, Node element)booleanadd(Node node)booleanaddAll(int index, Collection<? extends Node> c)booleanaddAll(Collection<? extends Node> c)voidclear()NodegetNode(String nodeName)Noderemove(int index)booleanremove(Object o)booleanremoveAll(Collection<?> c)protected voidremoveRange(int fromIndex, int toIndex)booleanretainAll(Collection<?> c)Nodeset(int index, Node element)-
Methods inherited from class java.util.ArrayList
clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeIf, replaceAll, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
Methods inherited from class java.util.AbstractCollection
containsAll, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
-
Methods inherited from interface java.util.List
containsAll
-
-
-
-
Constructor Detail
-
NodeList
public NodeList()
-
NodeList
public NodeList(Collection<? extends Node> c)
-
NodeList
public NodeList(Node... toCopyIn)
-
-
Method Detail
-
add
public void add(int index, Node element)
-
remove
public Node remove(int index)
-
remove
public boolean remove(Object o)
-
clear
public void clear()
-
addAll
public boolean addAll(Collection<? extends Node> c)
-
addAll
public boolean addAll(int index, Collection<? extends Node> c)
-
removeRange
protected void removeRange(int fromIndex, int toIndex)- Overrides:
removeRangein classArrayList<Node>
-
removeAll
public boolean removeAll(Collection<?> c)
-
retainAll
public boolean retainAll(Collection<?> c)
-
add
public boolean add(Node node)
-
-