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