org.restlet.util
Class NodeSet
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<Node>
org.restlet.util.NodeSet
- All Implemented Interfaces:
- Iterable<Node>, Collection<Node>, List<Node>, NodeList
public class NodeSet
- extends AbstractList<Node>
- implements List<Node>, NodeList
DOM nodes set that implements the standard List interface for easier
iteration.
- Author:
- Jerome Louvel (contact@noelios.com)
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 interface java.util.List |
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, subList, toArray, toArray |
NodeSet
public NodeSet(NodeList nodes)
getLength
public int getLength()
-
- Specified by:
getLength
in interface NodeList
item
public Node item(int index)
-
- Specified by:
item
in interface NodeList
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>
Copyright © 2005-2007 Noelios Technologies.