public long getLong(String key, long defaultValue) {
    if (containsKey(key)) {
      return Long.parseLong(get(key));
    } else {
      return defaultValue;
    }
  }
public long getLong ( String key , long defaultValue ) { if ( containsKey ( key ) ) { return Long . parseLong ( get ( key ) ) ; } else { return defaultValue ; } }
Gets the long value for <code>key</code> or <code>defaultValue</code> if not found.

@param key key to get value for
@param defaultValue default value if key not found
@return value or <code>defaultValue</code> if not found