public interface Configuration
| Modifier and Type | Method and Description | 
|---|---|
| Map<String,Object> | asFlatMap() | 
| Properties | asProperties() | 
| ResourceBundle | asResourceBundle() | 
| boolean | containsKey(String key)Searches for the key in this configuration. | 
| Object | get(String key)Returns the value associated with the given key. | 
| <T> T | get(String key,
   T defaultValue)Returns the value associated with the given key. | 
| <T> T | getAs(String key)/**
 Finds a value associated with the given key. | 
| <T> T | getAs(String key,
     T defaultValue)Finds a value associated with the given key. | 
| boolean | getAsBoolean(String key)Finds a value associated with the given key. | 
| boolean | getAsBoolean(String key,
            boolean defaultValue)Finds a value associated with the given key. | 
| double | getAsDouble(String key)Finds a value associated with the given key. | 
| double | getAsDouble(String key,
           double defaultValue)Finds a value associated with the given key. | 
| float | getAsFloat(String key)Finds a value associated with the given key. | 
| float | getAsFloat(String key,
          float defaultValue)Finds a value associated with the given key. | 
| int | getAsInt(String key)Finds a value associated with the given key. | 
| int | getAsInt(String key,
        int defaultValue)Finds a value associated with the given key. | 
| long | getAsLong(String key)Finds a value associated with the given key. | 
| long | getAsLong(String key,
         long defaultValue)Finds a value associated with the given key. | 
| String | getAsString(String key)Finds a value associated with the given key. | 
| String | getAsString(String key,
           String defaultValue)Finds a value associated with the given key. | 
| Object | getAt(String key)Returns the value associated with the given key. | 
| <T> T | getAt(String key,
     T defaultValue)Returns the value associated with the given key. | 
| <T> T | getConverted(String key,
            Class<T> type)Finds a value associated with the given key. | 
| <T> T | getConverted(String key,
            Class<T> type,
            String format)Finds a value associated with the given key. | 
| <T> T | getConverted(String key,
            Class<T> type,
            String format,
            T defaultValue)Finds a value associated with the given key. | 
| <T> T | getConverted(String key,
            Class<T> type,
            T defaultValue)Finds a value associated with the given key. | 
boolean containsKey(@Nonnull String key)
key - the key to search@Nonnull ResourceBundle asResourceBundle()
@Nonnull Properties asProperties()
@Nullable Object get(@Nonnull String key)
key - the key to search@Nullable <T> T get(@Nonnull String key, @Nullable T defaultValue)
T - the type of the valuekey - the key to searchdefaultValue - the value to be returned if the key was not found@Nullable Object getAt(@Nonnull String key)
key - the key to search@Nullable <T> T getAt(@Nonnull String key, @Nullable T defaultValue)
T - the type of the valuekey - the key to searchdefaultValue - the value to be returned if the key was not foundboolean getAsBoolean(@Nonnull String key)
key - the key to searchboolean getAsBoolean(@Nonnull String key, boolean defaultValue)
key - the key to searchdefaultValue - the value to be returned if the key is not foundint getAsInt(@Nonnull String key)
key - the key to searchint getAsInt(@Nonnull String key, int defaultValue)
key - the key to searchdefaultValue - the value to be returned if the key is not foundlong getAsLong(@Nonnull String key)
key - the key to searchlong getAsLong(@Nonnull String key, long defaultValue)
key - the key to searchdefaultValue - the value to be returned if the key is not foundfloat getAsFloat(@Nonnull String key)
key - the key to searchfloat getAsFloat(@Nonnull String key, float defaultValue)
key - the key to searchdefaultValue - the value to be returned if the key is not founddouble getAsDouble(@Nonnull String key)
key - the key to searchdouble getAsDouble(@Nonnull String key, double defaultValue)
key - the key to searchdefaultValue - the value to be returned if the key is not found@Nullable String getAsString(@Nonnull String key)
key - the key to search@Nullable String getAsString(@Nonnull String key, @Nullable String defaultValue)
key - the key to searchdefaultValue - the value to be returned if the key is not found@Nullable <T> T getAs(@Nonnull String key)
key - the key to search@Nullable <T> T getAs(@Nonnull String key, @Nullable T defaultValue)
key - the key to searchdefaultValue - the value to be returned if the key is not found@Nullable <T> T getConverted(@Nonnull String key, @Nonnull Class<T> type)
PropertyEditor.key - the key to searchtype - the type to be returned@Nullable <T> T getConverted(@Nonnull String key, @Nonnull Class<T> type, @Nonnull String format)
PropertyEditor.key - the key to searchtype - the type to be returnedformat - format used to convert the value@Nullable <T> T getConverted(@Nonnull String key, @Nonnull Class<T> type, @Nullable T defaultValue)
PropertyEditor.
 If not found then the supplied defaultValue will be returned.key - the key to searchtype - the type to be returneddefaultValue - the value to be returned if the key is not found@Nullable <T> T getConverted(@Nonnull String key, @Nonnull Class<T> type, @Nonnull String format, @Nullable T defaultValue)
PropertyEditor.
 If not found then the supplied defaultValue will be returned.key - the key to searchtype - the type to be returnedformat - format used to convert the valuedefaultValue - the value to be returned if the key is not found