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.ResourceBundlekey - the key for the desired objectjava.lang.NullPointerException - if key is nullpublic java.util.Enumeration getKeys()
getKeys in class java.util.ResourceBundlepublic boolean hasMoreElements()
hasMoreElements in interface java.util.Enumerationtrue 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.Enumerationjava.util.NoSuchElementException - if no more elements exist.