- Enclosing interface:
Configuration
public static interface Configuration.SetValue
Return a Set of values configured.
Example
Set<String> operations = Config.getSet().of("my.operations", "put","delete");
-
Method Summary
Modifier and TypeMethodDescriptionReturn the Set of values for the key, returning an empty collection if the configuration is not defined.Return the Set of values for the key, returning the default values if the configuration is not defined.Return the list of integer values for the key, returning an empty collection if the configuration is not defined.Return the list of integer values for the key, returning the default values if the configuration is not defined.Return the list of long values for the key, returning an empty collection if the configuration is not defined.Return the long values for the key, returning the default values if the configuration is not defined.<T> Set
<T> Apply a mapping function to the values for the given key, returning an empty collection if the configuration is not defined.
-
Method Details
-
of
Return the Set of values for the key, returning an empty collection if the configuration is not defined.- Parameters:
key
- The configuration key- Returns:
- The configured values or an empty Set if not defined
-
of
Return the Set of values for the key, returning the default values if the configuration is not defined.- Parameters:
key
- The configuration key- Returns:
- The configured values or default values
-
ofInt
Return the list of integer values for the key, returning an empty collection if the configuration is not defined.- Parameters:
key
- The configuration key- Returns:
- The configured values or an empty list if not defined
-
ofInt
Return the list of integer values for the key, returning the default values if the configuration is not defined.- Parameters:
key
- The configuration key- Returns:
- The configured values or default values
-
ofLong
Return the list of long values for the key, returning an empty collection if the configuration is not defined.- Parameters:
key
- The configuration key- Returns:
- The configured values or an empty list if not defined
-
ofLong
Return the long values for the key, returning the default values if the configuration is not defined.- Parameters:
key
- The configuration key- Returns:
- The configured values or default values
-
ofType
Apply a mapping function to the values for the given key, returning an empty collection if the configuration is not defined.- Parameters:
key
- The configuration keymappingFunction
- the mapping function to execute on each value- Returns:
- The configured and mapped values
-