/** * Returns the integer point value associated with the specified key. * * @param key The key to look up. * @return The integer point value associated with the specified key. */ int getInteger(String key) { if (toUpdate.containsKey(key)) return Value.toInteger(toUpdate.get(key).toString()); return getContent().getInteger(key); }
/** * Returns the integer value associated with the specified key. * * @param key The key to look up. * @param defaultValue The default value. * @return The integer value associated with the specified key. */ int getInteger(String key, int defaultValue) { if (toUpdate.containsKey(key)) return Value.toInteger(toUpdate.get(key).toString()); return getContent().getInteger(key, defaultValue); }