E - element typepublic final class EmptyEnumeration<E> extends Object implements Enumeration<E>
Enumeration implementation that has no elements.| Modifier and Type | Method and Description |
|---|---|
boolean |
hasMoreElements() |
static <E> Enumeration<E> |
instance()
Returns
EmptyEnumeration instance. |
E |
nextElement() |
@NotNull public static <E> Enumeration<E> instance()
EmptyEnumeration instance.E - elements typeEmptyEnumeration instancepublic boolean hasMoreElements()
hasMoreElements in interface Enumeration<E>@Nullable public E nextElement()
nextElement in interface Enumeration<E>Copyright © 2020. All rights reserved.