mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-03 05:44:10 -08:00
parent
3d65d38375
commit
7e761ca7e9
|
@ -138,6 +138,18 @@ public abstract class TResourceBundle {
|
||||||
throw new MissingResourceException("", last.getClass().getName(), key);
|
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) {
|
public final String getString(String key) {
|
||||||
return (String) getObject(key);
|
return (String) getObject(key);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user