mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -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