List of usage examples for org.apache.commons.configuration2 MapConfiguration getLong
@Override public long getLong(final String key, final long defaultValue)
From source file:org.powertac.common.TimeService.java
/** * Sets base, rate, and modulo parameters from a map, which is wrapped * in a Configuration to allow for conversions and default values. The * map must contain entries named "base", "rate", and "modulo". We also init * the clock here, because we have all the parameters. *//*from w w w . j av a2 s. c o m*/ public void setClockParameters(Map<String, Long> params) { MapConfiguration config = new MapConfiguration(params); this.base = config.getLong("base", base); this.rate = config.getLong("rate", rate); this.modulo = config.getLong("modulo", modulo); }