org.apache.jackrabbit.core.security.principal
Class PrincipalIteratorAdapter
java.lang.Object
org.apache.jackrabbit.commons.iterator.RangeIteratorDecorator
org.apache.jackrabbit.core.security.principal.PrincipalIteratorAdapter
- All Implemented Interfaces:
- Iterator, RangeIterator, PrincipalIterator
public class PrincipalIteratorAdapter
- extends RangeIteratorDecorator
- implements PrincipalIterator
PrincipalIteratorAdapter
...
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMPTY
public static final PrincipalIteratorAdapter EMPTY
- Static instance of an empty
PrincipalIterator
.
PrincipalIteratorAdapter
public PrincipalIteratorAdapter(Iterator iterator)
- Creates an adapter for the given
Iterator
of principals.
- Parameters:
iterator
- iterator of Principal
s
PrincipalIteratorAdapter
public PrincipalIteratorAdapter(Collection collection)
- Creates an iterator for the given collection of
Principal
s.
- Parameters:
collection
- collection of Principal
objects.
nextPrincipal
public Principal nextPrincipal()
throws NoSuchElementException
- Returns the next policy.
- Specified by:
nextPrincipal
in interface PrincipalIterator
- Returns:
- next policy.
- Throws:
NoSuchElementException
- if there is no next policy.
Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.