Retrieve a <code>long</code>. If the key does not exist or
cannot be converted to a <code>long</code>, the provided default
argument will be returned.
172058
public static long getLong( String key, long def ) {
        String s = prp.getProperty( key );
        if( s != null ) {
            try {
                def = Long.parseLong( s );
            } catch( NumberFormatException nfe ) {
                if( log.level > 0 )
                    nfe.printStackTrace( log );
            }
        }
        return def;
    }
340493
public static long getLong ( Properties props, String key, long def ) {
        String s = props.getProperty(key);
        if ( s != null ) {
            try {
                def = Long.parseLong(s);
            }
            catch ( NumberFormatException nfe ) {
                log.error("Not a number", nfe);
            }
        }
        return def;
    }
623143
public Long getAsNullableLong(String key) {
		Object value = getAsObject(key);
		return LongConverter.toNullableLong(value);
	}
239934
public CommandOption findLong(String argument) {

		Assert.notNullOrEmptyTrimmed(argument, "Missing long name!");

		Optional<CommandOption> found = options.stream().filter(o -> o.isLong(argument)).findFirst();
		return found.orElse(null);
	}
534081
public Long getLong(Map<String, Object> data, String name) {
    return get(data, name, Long.class);
  }
716534
public Long queryLong(String paramName, Long defaultValue) {
        return this.request.queryLong(paramName, defaultValue);
    }
190667
public static Long toLong(Object value, Long defaultValue) {
		return convert(Long.class, value, defaultValue);
	}
1094727
public long[] getLongArray(final String key, final long[] def) {
		try {
			final long[] result = getLongArray(key);
			return result != null ? result : def;
		} catch (final NumberFormatException nfe) {
			return def;
		}
	}
281000
public long getLong( String key ) {
      verifyIsNull();
      Object o = get( key );
      if( o != null ){
         return o instanceof Number ? ((Number) o).longValue() : (long) getDouble( key );
      }
      throw new JSONException( "JSONObject[" + JSONUtils.quote( key ) + "] is not a number." );
   }
94269
public static Long getPropertyLong(String key, Long aDefault)
	{
		return getSettings().getPropertyLong(key,aDefault);
	}
608095
public Long getLong(String key, String group) {
		return getLong(key, group, null);
	}
678887
public Long getParameterLong(String name, Long defaultValue)
   {
      String value = getParameterValue(name, null);

      if (value != null)
      {
         try
         {
            return StringNumberParser.parseLong(value);
         }
         catch (NumberFormatException e)
         {
            if (LOG.isTraceEnabled())
            {
               LOG.trace("An exception occurred: " + e.getMessage());
            }
         }
      }
      return defaultValue;
   }
1214487
public long getLong(final String key) {
		final String value = getProperty(key);
		if (value == null) {
			throw new NumberFormatException("Couldn't parse property to long.");
		}
		return Long.parseLong(value);
	}
1228161
public static Long getLong(Map<?, ?> map, Object key) {
		return get(map, key, Long.class);
	}
269151
public Long getLongFrom(JsonValue json) {
    if (json.isNumber()) {
      return json.asLong();
    } else {
      return Long.valueOf(json.asString());
    }
  }
31399
public long getLong(int index)
    {
        checkIndexLength(index, SizeOf.SIZE_OF_LONG);
        return unsafe.getLong(base, address + index);
    }
252219
@Override
    public final long optLong(final String key, final long defaultValue) {
        Long result = optLong(key);
        return result == null ? defaultValue : result;
    }