code: public long getLong(String key, long def) {
          Object tmp = objectMap.get(key);
          return tmp != null && tmp instanceof Number ? ((Number) tmp)
                  .longValue() : def;
      }
docs: get long value.
  
  @param key key.
  @param def default value.
  @return value or default value.