public abstract class AbstractConfiguration extends Object implements Configuration
Constructor and Description |
---|
AbstractConfiguration() |
Modifier and Type | Method and Description |
---|---|
<T> T |
get(String key,
T defaultValue) |
boolean |
getAsBoolean(String key) |
boolean |
getAsBoolean(String key,
boolean defaultValue) |
double |
getAsDouble(String key) |
double |
getAsDouble(String key,
double defaultValue) |
float |
getAsFloat(String key) |
float |
getAsFloat(String key,
float defaultValue) |
int |
getAsInt(String key) |
int |
getAsInt(String key,
int defaultValue) |
long |
getAsLong(String key) |
long |
getAsLong(String key,
long defaultValue) |
String |
getAsString(String key) |
String |
getAsString(String key,
String defaultValue) |
Object |
getAt(String key) |
<T> T |
getAt(String key,
T defaultValue) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asFlatMap, asResourceBundle, containsKey, get
@Nullable public <T> T get(@Nonnull String key, @Nullable T defaultValue)
get
in interface Configuration
@Nullable public Object getAt(@Nonnull String key)
getAt
in interface Configuration
@Nullable public <T> T getAt(@Nonnull String key, @Nullable T defaultValue)
getAt
in interface Configuration
public boolean getAsBoolean(@Nonnull String key)
getAsBoolean
in interface Configuration
public boolean getAsBoolean(@Nonnull String key, boolean defaultValue)
getAsBoolean
in interface Configuration
public int getAsInt(@Nonnull String key)
getAsInt
in interface Configuration
public int getAsInt(@Nonnull String key, int defaultValue)
getAsInt
in interface Configuration
public long getAsLong(@Nonnull String key)
getAsLong
in interface Configuration
public long getAsLong(@Nonnull String key, long defaultValue)
getAsLong
in interface Configuration
public float getAsFloat(@Nonnull String key)
getAsFloat
in interface Configuration
public float getAsFloat(@Nonnull String key, float defaultValue)
getAsFloat
in interface Configuration
public double getAsDouble(@Nonnull String key)
getAsDouble
in interface Configuration
public double getAsDouble(@Nonnull String key, double defaultValue)
getAsDouble
in interface Configuration
@Nullable public String getAsString(@Nonnull String key)
getAsString
in interface Configuration
@Nullable public String getAsString(@Nonnull String key, @Nullable String defaultValue)
getAsString
in interface Configuration