Class AccessControlPolicyIteratorAdapter
java.lang.Object
org.apache.jackrabbit.commons.iterator.RangeIteratorDecorator
org.apache.jackrabbit.commons.iterator.AccessControlPolicyIteratorAdapter
- All Implemented Interfaces:
Iterator,RangeIterator,AccessControlPolicyIterator
public class AccessControlPolicyIteratorAdapter
extends RangeIteratorDecorator
implements AccessControlPolicyIterator
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AccessControlPolicyIteratorStatic instance of an emptyAccessControlPolicyIteratorAdapter. -
Constructor Summary
ConstructorsConstructorDescriptionAccessControlPolicyIteratorAdapter(Collection collection) Creates an iterator for the given collection.AccessControlPolicyIteratorAdapter(Iterator iterator) Creates an adapter for the givenIterator.Creates an adapter for the givenRangeIterator. -
Method Summary
Modifier and TypeMethodDescriptionReturns the next policy.Methods inherited from class org.apache.jackrabbit.commons.iterator.RangeIteratorDecorator
getPosition, getSize, hasNext, next, remove, skipMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, removeMethods inherited from interface javax.jcr.RangeIterator
getPosition, getSize, skip
-
Field Details
-
EMPTY
Static instance of an emptyAccessControlPolicyIteratorAdapter.
-
-
Constructor Details
-
AccessControlPolicyIteratorAdapter
Creates an adapter for the givenRangeIterator.- Parameters:
iterator- iterator ofaccess control policies.
-
AccessControlPolicyIteratorAdapter
Creates an adapter for the givenIterator.- Parameters:
iterator- iterator ofaccess control policies.
-
AccessControlPolicyIteratorAdapter
Creates an iterator for the given collection.- Parameters:
collection- collection ofAccessControlPolicyobjects.
-
-
Method Details
-
nextAccessControlPolicy
Returns the next policy.- Specified by:
nextAccessControlPolicyin interfaceAccessControlPolicyIterator- Returns:
- next policy.
- Throws:
NoSuchElementException- if there is no next policy.
-