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 TypeMethodDescriptionbooleanReturnstrueif there is at least one more non-null key.Returns the next key.
-
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()Returnstrueif there is at least one more non-null key.- Specified by:
hasMoreElementsin interfaceEnumeration<String>
-
nextElement
Returns the next key.- Specified by:
nextElementin interfaceEnumeration<String>
-