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 |
---|---|
@NotNull java.security.Principal |
nextPrincipal()
Returns the next policy.
|
getPosition, getSize, hasNext, next, remove, skip
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPosition, getSize, 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.@NotNull public @NotNull java.security.Principal nextPrincipal()
nextPrincipal
in interface PrincipalIterator
Copyright © 2010 - 2020 Adobe. All Rights Reserved