hudson.slaves
Class NodeList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<Node>
              extended by 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

Nested Class Summary
static class NodeList.ConverterImpl
          Converter implementation for XStream.
 
Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
NodeList()
           
NodeList(Collection<? extends Node> c)
           
NodeList(Node... toCopyIn)
           
 
Method Summary
 void add(int index, Node element)
           
 boolean add(Node node)
           
 boolean addAll(Collection<? extends Node> c)
           
 boolean addAll(int index, 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, get, indexOf, isEmpty, lastIndexOf, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
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.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, subList
 

Constructor Detail

NodeList

public NodeList()

NodeList

public NodeList(Collection<? extends Node> c)

NodeList

public NodeList(Node... toCopyIn)
Method Detail

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.