Package io.avaje.config
Interface Configuration.SetValue
-
- 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<String>of(String key)Return the Set of values for the key returning an empty collection if the configuration is not defined.Set<String>of(String key, String... defaultValues)Return the Set of values for the key returning the default values if the configuration is not defined.Set<Integer>ofInt(String key)Return the list of integer values for the key returning an empty collection if the configuration is not defined.Set<Integer>ofInt(String key, int... defaultValues)Return the list of integer values for the key returning the default values if the configuration is not defined.Set<Long>ofLong(String key)Return the list of long values for the key returning an empty collection if the configuration is not defined.Set<Long>ofLong(String key, long... defaultValues)Return the long values for the key returning the default values if the configuration is not defined.
-
-
-
Method Detail
-
of
Set<String> of(String key)
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
Set<String> of(String key, String... defaultValues)
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
Set<Integer> ofInt(String key)
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
Set<Integer> ofInt(String key, int... defaultValues)
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
Set<Long> ofLong(String key)
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
-
-