| Modifier and Type | Field and Description |
|---|---|
| public static final NavigableSet | FALSE_VALUES
Case insensitive |
| public static final String | |
| public static final NavigableSet | TRUE_VALUES
Case insensitive |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Boolean | |
| public static Boolean | |
| public static boolean | |
| public static boolean | |
| public static Charset | |
| public static Charset | |
| public static Integer | |
| public static Integer | |
| public static int | |
| public static int | |
| public static Long | getLong(PropertyResolver
The resolver, String PropertyResolver instance - ignored if nullThe property name name)
|
| public static Long | |
| public static long | Returns: The resolved propertyThe resolver, String PropertyResolver instance - ignored if nullThe property name name, long The default value to return if the specified property does not exist in the
properties map defaultValue)
|
| public static long | |
| public static Object | |
| public static Object | |
| public static Object | |
| public static String | |
| public static String | |
| public static String | Returns: The set value (if notnull/empty) or default oneThe resolver, String PropertyResolver to use - ignored if nullThe property name name, String The default value to return if property not set or empty defaultValue)
|
| public static String | |
| public static boolean | |
| public static Boolean | Returns: The result -null if value is null/emptyThe value to parse value)Converts a string to a |
| public static Map | resolvePropertiesSource(PropertyResolver
The resolver, String PropertyResolver to start from - ignored if nullThe requested property name name)Unwinds the resolvers hierarchy until found one with a non- |
| public static Object | |
| public static Object | Returns: The found value ornullThe resolver, String PropertyResolver to start from - ignored if nullThe requested property name name)Unwinds the resolvers hierarchy until found one with a non- |
| public static boolean | |
| public static Boolean | Returns: The result -null if null or an empty stringThe value to be converted value)Attempts to convert the object into a
|
| public static Charset | |
| public static < Type of enumerated value E extends Enum | Returns: The matching enumerated value -null if no match foundThe enumerated class type enumType, Object The configured value - ignored if value, boolean nullWhether to fail if no matching name found failIfNoMatch, Collection<E> The available values to compare the name available)Converts an enumerated configuration value:
|
| public static int | |
| public static Integer | |
| public static long | Returns: The resolved valueThe resolved value - may be value, long nullThe default to use if defaultValue)null resolved valueConverts a generic object value to a
|
| public static Long | toLong(Object
The resolved value - may be value)nullConverts a generic object into a
|
| public static PropertyResolver | |
| public static PropertyResolver | Returns: The resolver wrapperThe properties map - may be props)null/empty if no properties are updatedWraps a |
| public static PropertyResolver | |
| public static Object | |
| public static Object | |
| public static Object | |
| public static Object | |
| public static Object | |
| public static Object | |
| public static Object | Returns: The previous value -null if noneThe resolver, String PropertyResolver instanceThe property name name, Object The new value - if value)null or an empty CharSequence the property is removed
|
| public static Object |
| FALSE_VALUES | back to summary |
|---|---|
| public static final NavigableSet<String> FALSE_VALUES Case insensitive | |
| NONE_VALUE | back to summary |
|---|---|
| public static final String NONE_VALUE | |
| TRUE_VALUES | back to summary |
|---|---|
| public static final NavigableSet<String> TRUE_VALUES Case insensitive | |
| PropertyResolverUtils | back to summary |
|---|---|
| private PropertyResolverUtils() | |
| getBoolean | back to summary |
|---|---|
| public static Boolean getBoolean(PropertyResolver resolver, String name) | |
| getBoolean | back to summary |
|---|---|
| public static Boolean getBoolean(Map<String, ?> props, String name) | |
| getBooleanProperty | back to summary |
|---|---|
| public static boolean getBooleanProperty(PropertyResolver resolver, String name, boolean defaultValue) | |
| getBooleanProperty | back to summary |
|---|---|
| public static boolean getBooleanProperty(Map<String, ?> props, String name, boolean defaultValue) | |
| getCharset | back to summary |
|---|---|
| public static Charset getCharset(PropertyResolver resolver, String name, Charset defaultValue) | |
| getCharset | back to summary |
|---|---|
| public static Charset getCharset(Map<String, ?> props, String name, Charset defaultValue) | |
| getInteger | back to summary |
|---|---|
| public static Integer getInteger(PropertyResolver resolver, String name) | |
| getInteger | back to summary |
|---|---|
| public static Integer getInteger(Map<String, ?> props, String name) | |
| getIntProperty | back to summary |
|---|---|
| public static int getIntProperty(PropertyResolver resolver, String name, int defaultValue) | |
| getIntProperty | back to summary |
|---|---|
| public static int getIntProperty(Map<String, ?> props, String name, int defaultValue) | |
| getLong | back to summary |
|---|---|
public static Long getLong(PropertyResolver resolver, String name)
| |
| getLong | back to summary |
|---|---|
| public static Long getLong(Map<String, ?> props, String name) | |
| getLongProperty | back to summary |
|---|---|
public static long getLongProperty(PropertyResolver resolver, String name, long defaultValue)
| |
| getLongProperty | back to summary |
|---|---|
| public static long getLongProperty(Map<String, ?> props, String name, long defaultValue) | |
| getObject | back to summary |
|---|---|
| public static Object getObject(PropertyResolver resolver, String name) | |
| getObject | back to summary |
|---|---|
| public static Object getObject(PropertyResolver resolver, String name, Object defaultValue) | |
| getObject | back to summary |
|---|---|
| public static Object getObject(Map<String, ?> props, String name) | |
| getString | back to summary |
|---|---|
| public static String getString(PropertyResolver resolver, String name) | |
| getString | back to summary |
|---|---|
| public static String getString(Map<String, ?> props, String name) | |
| getStringProperty | back to summary |
|---|---|
public static String getStringProperty(PropertyResolver resolver, String name, String defaultValue)
| |
| getStringProperty | back to summary |
|---|---|
| public static String getStringProperty(Map<String, ?> props, String name, String defaultValue) | |
| isNoneValue | back to summary |
|---|---|
public static boolean isNoneValue(String v)
| |
| parseBoolean | back to summary |
|---|---|
| public static Boolean parseBoolean(String value) Converts a string to a
| |
| resolvePropertiesSource | back to summary |
|---|---|
| public static Map Unwinds the resolvers hierarchy until found one with a non-
| |
| resolvePropertyValue | back to summary |
|---|---|
| public static Object resolvePropertyValue(Map<String, ?> props, String name) | |
| resolvePropertyValue | back to summary |
|---|---|
| public static Object resolvePropertyValue(PropertyResolver resolver, String name) Unwinds the resolvers hierarchy until found one with a non-
| |
| toBoolean | back to summary |
|---|---|
public static boolean toBoolean(Object value, boolean defaultValue)
| |
| toBoolean | back to summary |
|---|---|
| public static Boolean toBoolean(Object value) Attempts to convert the object into a
| |
| toCharset | back to summary |
|---|---|
| public static Charset toCharset(Object value) | |
| toEnum | back to summary |
|---|---|
| public static <E extends Enum Converts an enumerated configuration value:
| |
| toInteger | back to summary |
|---|---|
| public static int toInteger(Object value, int defaultValue) | |
| toInteger | back to summary |
|---|---|
| public static Integer toInteger(Object value) | |
| toLong | back to summary |
|---|---|
| public static long toLong(Object value, long defaultValue) Converts a generic object value to a
| |
| toLong | back to summary |
|---|---|
| public static Long toLong(Object value) Converts a generic object into a
| |
| toPropertyResolver | back to summary |
|---|---|
| public static PropertyResolver toPropertyResolver(Properties props) | |
| toPropertyResolver | back to summary |
|---|---|
| public static PropertyResolver toPropertyResolver(Map<String, ?> props) Wraps a
| |
| toPropertyResolver | back to summary |
|---|---|
| public static PropertyResolver toPropertyResolver(Map<String, ?> props, PropertyResolver parent) | |
| updateProperty | back to summary |
|---|---|
| public static Object updateProperty(PropertyResolver resolver, String name, long value) | |
| updateProperty | back to summary |
|---|---|
| public static Object updateProperty(Map<String, Object> props, String name, long value) | |
| updateProperty | back to summary |
|---|---|
| public static Object updateProperty(PropertyResolver resolver, String name, int value) | |
| updateProperty | back to summary |
|---|---|
| public static Object updateProperty(Map<String, Object> props, String name, int value) | |
| updateProperty | back to summary |
|---|---|
| public static Object updateProperty(PropertyResolver resolver, String name, boolean value) | |
| updateProperty | back to summary |
|---|---|
| public static Object updateProperty(Map<String, Object> props, String name, boolean value) | |
| updateProperty | back to summary |
|---|---|
public static Object updateProperty(PropertyResolver resolver, String name, Object value)
| |
| updateProperty | back to summary |
|---|---|
| public static Object updateProperty(Map<String, Object> props, String name, Object value) | |