Package org.wildfly.security.util
Interface EnumerationIterator<E>
-
- All Superinterfaces:
Enumeration<E>
,Iterator<E>
- All Known Implementing Classes:
ArrayIterator
,IntNameSetPermissionCollection.Iter
,LongNameSetPermissionCollection.Iter
public interface EnumerationIterator<E> extends Enumeration<E>, Iterator<E>
An enumeration which is also an iterator.- Author:
- David M. Lloyd
-
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description default boolean
hasMoreElements()
Determine if there are more elements to iterate over in the direction of this iterator.default E
nextElement()
Get the next element in the direction of this iterator.static <E> EnumerationIterator<E>
over(E item)
Get an enumeration iterator over one element.-
Methods inherited from interface java.util.Enumeration
asIterator
-
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove
-
-
-
-
Method Detail
-
hasMoreElements
default boolean hasMoreElements()
Determine if there are more elements to iterate over in the direction of this iterator.- Specified by:
hasMoreElements
in interfaceEnumeration<E>
- Returns:
true
if there are more elements,false
otherwise
-
nextElement
default E nextElement()
Get the next element in the direction of this iterator.- Specified by:
nextElement
in interfaceEnumeration<E>
- Returns:
- the next element
-
over
static <E> EnumerationIterator<E> over(E item)
Get an enumeration iterator over one element.- Type Parameters:
E
- the element type- Parameters:
item
- the element- Returns:
- the enumeration iterator
-
-