public class PrincipalIteratorAdapter extends RangeIteratorDecorator implements PrincipalIterator
RangeIteratorAdapter
implementing the
PrincipalIterator
interface.Modifier and Type | Field and Description |
---|---|
static PrincipalIteratorAdapter |
EMPTY
Static instance of an empty
PrincipalIterator . |
Constructor and Description |
---|
PrincipalIteratorAdapter(java.util.Collection<? extends java.security.Principal> collection)
Creates an iterator for the given collection of
Principal s. |
PrincipalIteratorAdapter(java.util.Iterator<? extends java.security.Principal> iterator)
Creates an adapter for the given
Iterator of principals. |
Modifier and Type | Method and Description |
---|---|
java.security.Principal |
nextPrincipal()
Returns the next policy.
|
getPosition, getSize, hasNext, next, remove, skip
public static final PrincipalIteratorAdapter EMPTY
PrincipalIterator
.public PrincipalIteratorAdapter(java.util.Iterator<? extends java.security.Principal> iterator)
Iterator
of principals.iterator
- iterator of Principal
spublic PrincipalIteratorAdapter(java.util.Collection<? extends java.security.Principal> collection)
Principal
s.collection
- collection of Principal
objects.public java.security.Principal nextPrincipal()
nextPrincipal
in interface PrincipalIterator
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"