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
Principals. |
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, skipclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPosition, getSize, skipforEachRemaining, hasNext, next, removepublic static final PrincipalIteratorAdapter EMPTY
PrincipalIterator.public PrincipalIteratorAdapter(Iterator<? extends Principal> iterator)
Iterator of principals.iterator - iterator of Principalspublic PrincipalIteratorAdapter(Collection<? extends Principal> collection)
Principals.collection - collection of Principal objects.public Principal nextPrincipal() throws NoSuchElementException
nextPrincipal in interface PrincipalIteratorNoSuchElementException - if there is no next policy.Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.