public class PrincipalIteratorAdapter extends RangeIteratorDecorator implements PrincipalIterator
PrincipalIteratorAdapter
...Modifier and Type | Field and Description |
---|---|
static PrincipalIteratorAdapter |
EMPTY
Static instance of an empty
PrincipalIterator . |
Constructor and Description |
---|
PrincipalIteratorAdapter(Collection<? extends Principal> collection)
Creates an iterator for the given collection of
Principal s. |
PrincipalIteratorAdapter(Iterator<? extends Principal> iterator)
Creates an adapter for the given
Iterator of principals. |
Modifier and Type | Method and Description |
---|---|
Principal |
nextPrincipal()
Returns the next policy.
|
getPosition, getSize, hasNext, next, remove, skip
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPosition, getSize, skip
forEachRemaining, hasNext, next, remove
public static final PrincipalIteratorAdapter EMPTY
PrincipalIterator
.public PrincipalIteratorAdapter(Iterator<? extends Principal> iterator)
Iterator
of principals.iterator
- iterator of Principal
spublic PrincipalIteratorAdapter(Collection<? extends Principal> collection)
Principal
s.collection
- collection of Principal
objects.public Principal nextPrincipal() throws NoSuchElementException
nextPrincipal
in interface PrincipalIterator
NoSuchElementException
- if there is no next policy.Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.