Enumeration (Java SE 26 & JDK 26)
Interface Enumeration<E>
- Type Parameters:
E- the type of elements returned by this enumeration
- All Known Subinterfaces:
NamingEnumeration<T>
- All Known Implementing Classes:
StringTokenizer
-
Method Summary
Modifier and Type
Method
Description
Returns an
Iteratorthat traverses the remaining elements covered by this enumeration.booleanTests if this enumeration contains more elements.
Returns the next element of this enumeration if this enumeration object has at least one more element to provide.
-
Method Details
-
hasMoreElements
-
nextElement
-
asIterator
-