Class PrincipalIteratorAdapter
java.lang.Object
org.apache.jackrabbit.commons.iterator.RangeIteratorDecorator
org.apache.jackrabbit.oak.spi.security.principal.PrincipalIteratorAdapter
- All Implemented Interfaces:
Iterator
,RangeIterator
,PrincipalIterator
Principal specific
RangeIteratorAdapter
implementing the
PrincipalIterator
interface.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PrincipalIteratorAdapter
Static instance of an emptyPrincipalIterator
. -
Constructor Summary
ConstructorsConstructorDescriptionPrincipalIteratorAdapter
(Collection<? extends Principal> collection) Creates an iterator for the given collection ofPrincipal
s.PrincipalIteratorAdapter
(Iterator<? extends Principal> iterator) Creates an adapter for the givenIterator
of principals. -
Method Summary
Methods inherited from class org.apache.jackrabbit.commons.iterator.RangeIteratorDecorator
getPosition, getSize, hasNext, next, remove, skip
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove
Methods inherited from interface javax.jcr.RangeIterator
getPosition, getSize, skip
-
Field Details
-
EMPTY
Static instance of an emptyPrincipalIterator
.
-
-
Constructor Details
-
Method Details
-
nextPrincipal
Returns the next policy.- Specified by:
nextPrincipal
in interfacePrincipalIterator
- Returns:
- next policy.
-