org.tinyjee.maven.dim.utils
Class NodeListAdapter

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<Node>
          extended by org.tinyjee.maven.dim.utils.NodeListAdapter
All Implemented Interfaces:
Iterable<Node>, Collection<Node>, List<Node>

public class NodeListAdapter
extends AbstractList<Node>

Adapts NodeList to Java Collections.

Author:
Juergen_Kellerer, 2011-10-30

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
NodeListAdapter(NodeList nodeList)
           
 
Method Summary
 Node get(int index)
           
 int size()
           
 
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Constructor Detail

NodeListAdapter

public NodeListAdapter(NodeList nodeList)
Method Detail

get

public Node get(int index)
Specified by:
get in interface List<Node>
Specified by:
get in class AbstractList<Node>

size

public int size()
Specified by:
size in interface Collection<Node>
Specified by:
size in interface List<Node>
Specified by:
size in class AbstractCollection<Node>