public final class ConfigUtils extends Object
Modifier and Type | Method and Description |
---|---|
static <T,C extends Collection<T>> |
getDefaults(io.smallrye.config.SmallRyeConfig config,
String defaultValue,
Class<T> itemType,
IntFunction<C> collectionFactory)
This method replicates the logic of
SmallRyeConfig.getValues(String, Class, IntFunction) for the given
default value string. |
public static <T,C extends Collection<T>> C getDefaults(io.smallrye.config.SmallRyeConfig config, String defaultValue, Class<T> itemType, IntFunction<C> collectionFactory)
SmallRyeConfig.getValues(String, Class, IntFunction)
for the given
default value string.T
- the item typeC
- the collection typeconfig
- the config instance (must not be null
)defaultValue
- the default value string (must not be null
)itemType
- the item type class (must not be null
)collectionFactory
- the collection factory (must not be null
)null
)Copyright © 2019 JBoss by Red Hat. All rights reserved.