示例#1
0
 /**
  * Returns the long value associated with the specified key, or the default value if the key does
  * not exist. Long values can be converted from: number, numberMB, numberGB.
  *
  * @param key The key to look up.
  * @param defaultValue The default value.
  * @return The long value associated with the specified key.
  */
 long getByteCount(String key, long defaultValue) {
   if (toUpdate.containsKey(key)) return Value.toByteCount(toUpdate.get(key).toString());
   return getContent().getByteCount(key, defaultValue);
 }