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 for Node that has special serialization semantics
of not serializing EphemeralNodes.
- Author:
- Kohsuke Kawaguchi
- See Also:
- Serialized Form
| Methods inherited from class java.util.ArrayList |
clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, size, toArray, toArray, trimToSize |
NodeList
public NodeList()
NodeList
public NodeList(Collection<? extends Node> c)
NodeList
public NodeList(Node... toCopyIn)
getNode
@CheckForNull
public Node getNode(String nodeName)
add
public void add(int index,
Node element)
- Specified by:
add in interface List<Node>- Overrides:
add in class ArrayList<Node>
remove
public Node remove(int index)
- Specified by:
remove in interface List<Node>- Overrides:
remove in class ArrayList<Node>
remove
public boolean remove(Object o)
- Specified by:
remove in interface Collection<Node>- Specified by:
remove in interface List<Node>- Overrides:
remove in class ArrayList<Node>
clear
public void clear()
- Specified by:
clear in interface Collection<Node>- Specified by:
clear in interface List<Node>- Overrides:
clear in class ArrayList<Node>
addAll
public boolean addAll(Collection<? extends Node> c)
- Specified by:
addAll in interface Collection<Node>- Specified by:
addAll in interface List<Node>- Overrides:
addAll in class ArrayList<Node>
addAll
public boolean addAll(int index,
Collection<? extends Node> c)
- Specified by:
addAll in interface List<Node>- Overrides:
addAll in class ArrayList<Node>
removeRange
protected void removeRange(int fromIndex,
int toIndex)
- Overrides:
removeRange in class ArrayList<Node>
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAll in interface Collection<Node>- Specified by:
removeAll in interface List<Node>- Overrides:
removeAll in class AbstractCollection<Node>
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAll in interface Collection<Node>- Specified by:
retainAll in interface List<Node>- Overrides:
retainAll in class AbstractCollection<Node>
add
public boolean add(Node node)
- Specified by:
add in interface Collection<Node>- Specified by:
add in interface List<Node>- Overrides:
add in class ArrayList<Node>
set
public Node set(int index,
Node element)
- Specified by:
set in interface List<Node>- Overrides:
set in class ArrayList<Node>
Copyright © 2004-2013. All Rights Reserved.