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>
CopyOnWriteArrayList
forNode
that has special serialization semantics of not serializingEphemeralNode
s.- Author:
- Kohsuke Kawaguchi
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NodeList.ConverterImpl
Converter
implementation 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 void
add(int index, Node element)
boolean
add(Node node)
boolean
addAll(int index, Collection<? extends Node> c)
boolean
addAll(Collection<? extends Node> c)
void
clear()
Node
getNode(String nodeName)
Node
remove(int index)
boolean
remove(Object o)
boolean
removeAll(Collection<?> c)
protected void
removeRange(int fromIndex, int toIndex)
boolean
retainAll(Collection<?> c)
Node
set(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:
removeRange
in classArrayList<Node>
-
removeAll
public boolean removeAll(Collection<?> c)
-
retainAll
public boolean retainAll(Collection<?> c)
-
add
public boolean add(Node node)
-
-