mirror of
https://github.com/konsoletyper/teavm.git
synced 2024-11-21 01:00:54 +08:00
parent
3d65d38375
commit
7e761ca7e9
@ -138,6 +138,18 @@ public abstract class TResourceBundle {
|
||||
throw new MissingResourceException("", last.getClass().getName(), key);
|
||||
}
|
||||
|
||||
public boolean containsKey(String key) {
|
||||
TResourceBundle theParent = this;
|
||||
do {
|
||||
Object result = theParent.handleGetObject(key);
|
||||
if (result != null) {
|
||||
return true;
|
||||
}
|
||||
theParent = theParent.parent;
|
||||
} while (theParent != null);
|
||||
return false;
|
||||
}
|
||||
|
||||
public final String getString(String key) {
|
||||
return (String) getObject(key);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user