/** * Retrieves a configuration value as a <code>Nanoseconds</code>. * * @param key configuration key (relative to configuration root key) * @param defaultNanoseconds default value if configuration key doesn't exist * @return a configuration value or the defaultMilliseconds */ public Long getNanoseconds(String key, Long defaultNanoseconds) { return (Long)Scala.orElse(conf.getNanoseconds(key), defaultNanoseconds); }
/** * Retrieves a configuration value as a <code>Milliseconds</code>. * * @param key configuration key (relative to configuration root key) * @param defaultMilliseconds default value if configuration key doesn't exist * @return a configuration value or the defaultMilliseconds */ public Long getMilliseconds(String key, Long defaultMilliseconds) { return (Long)Scala.orElse(conf.getMilliseconds(key), defaultMilliseconds); }
/** * Retrieves a configuration value as a {@code List<Boolean>}. * * @param key configuration key (relative to configuration root key) * @param defaultList default value if configuration key doesn't exist * @return a configuration value or the defaultList */ public List<Boolean> getBooleanList(String key, List<Boolean> defaultList) { return (List<Boolean>)Scala.orElse(conf.getBooleanList(key), defaultList); }
/** * Retrieves a configuration value as an <code>Int</code>. * * @param key configuration key (relative to configuration root key) * @param defaultInteger default value if configuration key doesn't exist * @return a configuration value or the defaultInteger */ public Integer getInt(String key, Integer defaultInteger) { return (Integer)Scala.orElse(conf.getInt(key), defaultInteger); }
/** * Retrieves a configuration value as an <code>Number</code>. * * @param key configuration key (relative to configuration root key) * @param defaultNumber default value if configuration key doesn't exist * @return a configuration value or the defaultInteger */ public Number getNumber(String key, Number defaultNumber) { return (Number)Scala.orElse(conf.getNumber(key), defaultNumber); }
/** * Retrieves a configuration value as a {@code List<Double>}. * * @param key configuration key (relative to configuration root key) * @param defaultList default value if configuration key doesn't exist * @return a configuration value or the defaultList */ public List<Double> getDoubleList(String key, List<Double> defaultList) { return (List<Double>)Scala.orElse(conf.getDoubleList(key), defaultList); }
/** * Retrieves a configuration value as a {@code List<Number>}. * * @param key configuration key (relative to configuration root key) * @param defaultList default value if configuration key doesn't exist * @return a configuration value or the defaultList */ public List<Number> getNumberList(String key, List<Number> defaultList) { return (List<Number>)Scala.orElse(conf.getNumberList(key), defaultList); }
/** * Retrieves a configuration value as an <code>Double</code>. * * @param key configuration key (relative to configuration root key) * @param defaultDouble default value if configuration key doesn't exist * @return a configuration value or the defaultInteger */ public Double getDouble(String key, Double defaultDouble) { return (Double)Scala.orElse(conf.getDouble(key), defaultDouble); }
/** * Retrieves a configuration value as an <code>Long</code>. * * @param key configuration key (relative to configuration root key) * @param defaultLong default value if configuration key doesn't exist * @return a configuration value or the defaultInteger */ public Long getLong(String key, Long defaultLong) { return (Long)Scala.orElse(conf.getLong(key), defaultLong); }
/** * Retrieves a configuration value as a {@code List<Long>} representing bytes. * * @param key configuration key (relative to configuration root key) * @param defaultList default value if configuration key doesn't exist * @return a configuration value or the defaultList */ public List<Long> getBytesList(String key, List<Long> defaultList) { return (List<Long>)Scala.orElse(conf.getBytesList(key), defaultList); }
/** * Retrieves a configuration value as a {@code List<Integer>}. * * @param key configuration key (relative to configuration root key) * @param defaultList default value if configuration key doesn't exist * @return a configuration value or the defaultList */ public List<Integer> getIntList(String key, List<Integer> defaultList) { return (List<Integer>)Scala.orElse(conf.getIntList(key), defaultList); }
/** * Retrieves a configuration value as a {@code List<Long>}. * * @param key configuration key (relative to configuration root key) * @param defaultList default value if configuration key doesn't exist * @return a configuration value or the defaultList */ public List<Long> getLongList(String key, List<Long> defaultList) { return (List<Long>)Scala.orElse(conf.getLongList(key), defaultList); }
/** * Retrieves a configuration value as a {@code List<Number>}. * * @param key configuration key (relative to configuration root key) * @param defaultList default value if configuration key doesn't exist * @return a configuration value or the defaultList */ public List<String> getStringList(String key, List<String> defaultList) { return (List<String>)Scala.orElse(conf.getStringList(key), defaultList); }
/** * Retrieves a configuration value as a <code>Bytes</code>. * * @param key configuration key (relative to configuration root key) * @param defaultBytes default value if configuration key doesn't exist * @return a configuration value or the defaultBytes */ public Long getBytes(String key, Long defaultBytes) { return (Long)Scala.orElse(conf.getBytes(key), defaultBytes); }
/** * Retrieves a configuration value as a <code>Boolean</code>. * * @param key configuration key (relative to configuration root key) * @param defaultBoolean default value if configuration key doesn't exist * @return a configuration value or the defaultBoolean */ public Boolean getBoolean(String key, Boolean defaultBoolean) { return (Boolean)Scala.orElse(conf.getBoolean(key), defaultBoolean); }
/** * Retrieves a configuration value as a {@code List<Long>} representing Milliseconds. * * @param key configuration key (relative to configuration root key) * @param defaultList default value if configuration key doesn't exist * @return a configuration value or the defaultList */ public List<Long> getMillisecondsList(String key, List<Long> defaultList) { return (List<Long>)Scala.orElse(conf.getMillisecondsList(key), defaultList); }
/** * Retrieves a configuration value as a {@code List<Long>} representing Nanoseconds. * * @param key configuration key (relative to configuration root key) * @param defaultList default value if configuration key doesn't exist * @return a configuration value or the defaultList */ public List<Long> getNanosecondsList(String key, List<Long> defaultList) { return (List<Long>)Scala.orElse(conf.getNanosecondsList(key), defaultList); }
/** * Retrieves a configuration value as a <code>String</code>. * * @param key configuration key (relative to configuration root key) * @param defaultString default value if configuration key doesn't exist * @return a configuration value or the defaultString */ public String getString(String key, String defaultString) { return Scala.orElse(conf.getString(key, scala.Option.<scala.collection.immutable.Set<java.lang.String>>empty()), defaultString); }