Package org.apache.sis.util.resources
Class IndexedResourceBundle.KeyEnum
java.lang.Object
org.apache.sis.util.resources.IndexedResourceBundle.KeyEnum
- All Implemented Interfaces:
Enumeration<String>
- Enclosing class:
- IndexedResourceBundle
private static final class IndexedResourceBundle.KeyEnum
extends Object
implements Enumeration<String>
The keys as an enumeration. This enumeration needs to skip null values, which
may occur if the resource bundle is incomplete for that particular locale.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returnstrue
if there is at least one more non-null key.Returns the next key.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Enumeration
asIterator
-
Field Details
-
keys
The keys to return. -
next
private int nextIndex of next key to return.
-
-
Constructor Details
-
KeyEnum
KeyEnum(String[] keys) Creates a new enum for the given array of keys.
-
-
Method Details
-
hasMoreElements
public boolean hasMoreElements()Returnstrue
if there is at least one more non-null key.- Specified by:
hasMoreElements
in interfaceEnumeration<String>
-
nextElement
Returns the next key.- Specified by:
nextElement
in interfaceEnumeration<String>
-