org.apache.jackrabbit.commons.iterator
Class NodeTypeIteratorAdapter
java.lang.Object
org.apache.jackrabbit.commons.iterator.RangeIteratorDecorator
org.apache.jackrabbit.commons.iterator.NodeTypeIteratorAdapter
- All Implemented Interfaces:
- Iterator, NodeTypeIterator, RangeIterator
public class NodeTypeIteratorAdapter
- extends RangeIteratorDecorator
- implements NodeTypeIterator
Adapter class for turning RangeIterator
s or Iterator
s
into NodeTypeIterator
s.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMPTY
public static final NodeTypeIterator EMPTY
- Static instance of an empty
NodeTypeIterator
.
NodeTypeIteratorAdapter
public NodeTypeIteratorAdapter(RangeIterator iterator)
- Creates an adapter for the given
RangeIterator
.
- Parameters:
iterator
- iterator of NodeType
s
NodeTypeIteratorAdapter
public NodeTypeIteratorAdapter(Iterator iterator)
- Creates an adapter for the given
Iterator
.
- Parameters:
iterator
- iterator of NodeType
s
NodeTypeIteratorAdapter
public NodeTypeIteratorAdapter(Collection<NodeType> collection)
- Creates an iterator for the given collection.
- Parameters:
collection
- collection of NodeType
s
nextNodeType
public NodeType nextNodeType()
throws NoSuchElementException
- Returns the next node type.
- Specified by:
nextNodeType
in interface NodeTypeIterator
- Returns:
- next node type
- Throws:
NoSuchElementException
- if there is no next node type
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.