public class AccessControlPolicyIteratorAdapter extends RangeIteratorDecorator implements AccessControlPolicyIterator
Modifier and Type | Field and Description |
---|---|
static AccessControlPolicyIterator |
EMPTY
Static instance of an empty
AccessControlPolicyIteratorAdapter . |
Constructor and Description |
---|
AccessControlPolicyIteratorAdapter(Collection collection)
Creates an iterator for the given collection.
|
AccessControlPolicyIteratorAdapter(Iterator iterator)
Creates an adapter for the given
Iterator . |
AccessControlPolicyIteratorAdapter(RangeIterator iterator)
Creates an adapter for the given
RangeIterator . |
Modifier and Type | Method and Description |
---|---|
AccessControlPolicy |
nextAccessControlPolicy()
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 AccessControlPolicyIterator EMPTY
AccessControlPolicyIteratorAdapter
.public AccessControlPolicyIteratorAdapter(RangeIterator iterator)
RangeIterator
.iterator
- iterator of access control policies
.public AccessControlPolicyIteratorAdapter(Iterator iterator)
Iterator
.iterator
- iterator of access control policies
.public AccessControlPolicyIteratorAdapter(Collection collection)
collection
- collection of AccessControlPolicy
objects.public AccessControlPolicy nextAccessControlPolicy() throws NoSuchElementException
nextAccessControlPolicy
in interface AccessControlPolicyIterator
NoSuchElementException
- if there is no next policy.Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.