- Enclosing interface:
- Configuration
public static interface Configuration.ListValue
Return a List of values for a configuration key.
Example
List<Integer> codes = Config.getList().ofInt("my.codes", 42, 54);
-
Method Summary
Modifier and TypeMethodDescriptionReturn the list of values for the key returning an empty collection if the configuration is not defined.Return the list 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.
-
Method Details
-
of
Return the list 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 list if not defined
-
of
Return the list 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
-