public final class NullResourceBundle
extends java.util.ResourceBundle
implements java.util.Enumeration
Modifier and Type | Method and Description |
---|---|
java.util.Enumeration |
getKeys()
Returns an enumeration of the keys.
|
protected java.lang.Object |
handleGetObject(java.lang.String key)
Gets an object for the given key from this resource bundle.
|
boolean |
hasMoreElements()
Tests if this enumeration contains more elements.
|
static NullResourceBundle |
instance() |
java.lang.Object |
nextElement()
Returns the next element of this enumeration if this enumeration
object has at least one more element to provide.
|
public static NullResourceBundle instance()
protected java.lang.Object handleGetObject(java.lang.String key)
handleGetObject
in class java.util.ResourceBundle
key
- the key for the desired objectjava.lang.NullPointerException
- if key
is null
public java.util.Enumeration getKeys()
getKeys
in class java.util.ResourceBundle
public boolean hasMoreElements()
hasMoreElements
in interface java.util.Enumeration
true
if and only if this enumeration object
contains at least one more element to provide;
false
otherwise.public java.lang.Object nextElement()
nextElement
in interface java.util.Enumeration
java.util.NoSuchElementException
- if no more elements exist.