public final class Enumerations extends Object
Enumeration
.Modifier and Type | Method and Description |
---|---|
static <E> PeekableIterator<E> |
iterator(Enumeration<E> enumeration)
Returns a sequential
Iterator with the enumeration
as its source. |
static <E> Stream<E> |
stream(Enumeration<E> enumeration)
Returns a sequential
Stream with the enumeration as its
source. |
public static <E> PeekableIterator<E> iterator(Enumeration<E> enumeration)
Iterator
with the enumeration
as its source.E
- The type of the enumeration elementsenumeration
- the enumerationIterator
for the enumerationpublic static <E> Stream<E> stream(Enumeration<E> enumeration)
Stream
with the enumeration
as its
source.E
- The type of the enumeration elementsenumeration
- the enumeration, assumed to be unmodified during useStream
for the enumerationCopyright © 2025. All rights reserved.