Package org.opends.server.types
Interface MemberList<T>
-
- Type Parameters:
T
- type of the returned elements
- All Superinterfaces:
AutoCloseable
,Closeable
,Iterable<T>
,Iterator<T>
@PublicAPI(stability=VOLATILE, mayInstantiate=false, mayExtend=true, mayInvoke=true) public interface MemberList<T> extends Iterator<T>, Iterable<T>, Closeable
Iterator that can be used to iterate over the members of a group. This iterator must be closed when the caller has finished iterating on it.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
close()
Indicates that this member list is no longer required and that the server may clean up any resources that may have been used in the course of processing.default Iterator<T>
iterator()
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove
-
-
-
-
Method Detail
-
close
default void close()
Indicates that this member list is no longer required and that the server may clean up any resources that may have been used in the course of processing. This method must be called if the caller wishes to stop iterating across the member list before the end has been reached, although it will not be necessary if the call tohasMoreMembers
returnsfalse
.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
-