| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | escapeKey(final StringBuilder
the string builder to append the escaped key to sb, final String the key key)Escapes a maps key value for serialization to a string. |
| public static void | escapeValue(final StringBuilder
the string builder to append the escaped value to sb, final String the value value)Escapes a maps value for serialization to a string. |
| public static < the type of the key K> String | Returns: a string value for that map that can be used for configuration propertiesthe map to convert to a string map)Converts a map into a string that can be parsed by |
| public static < the type of the key K extends Enum | Returns: a string value for that map that can be used for configuration propertiesthe map to convert to a string map)Converts a map into a string that can be parsed by |
| public static <E extends Enum | Returns: a map of the key value pairs or an empty map if the string isnull or emptythe enum type enumType, final String the string to parse s)Parses a string of key/value pairs into an enum map. |
| public static <E extends Enum | Returns: a map of the key value pairs or an empty map if the string isnull or emptythe enum type enumType, final String the string to parse s, final boolean true if the each character from the key should be converted to uppercase,
otherwise false to keep the case as isParses a string of key/value pairs into an enum map. |
| public static Map | Returns: a map of the key value pairs or an empty map if the string isnull or emptythe string to parse s)Parses a string of key/value pairs into a map. |
| KEY | back to summary |
|---|---|
| private static final int KEY | |
| VALUE | back to summary |
|---|---|
| private static final int VALUE | |
| PropertyValues | back to summary |
|---|---|
| public PropertyValues() | |
| escapeKey | back to summary |
|---|---|
| public static void escapeKey(final StringBuilder sb, final String key) Escapes a maps key value for serialization to a string. If the key contains a
| |
| escapeValue | back to summary |
|---|---|
| public static void escapeValue(final StringBuilder sb, final String value) Escapes a maps value for serialization to a string. If a value contains a
| |
| mapToString | back to summary |
|---|---|
| public static <K> String mapToString(final Map<K, String> map) Converts a map into a string that can be parsed by
| |
| mapToString | back to summary |
|---|---|
| public static <K extends Enum Converts a map into a string that can be parsed by
| |
| stringToEnumMap | back to summary |
|---|---|
| public static <E extends Enum Parses a string of key/value pairs into an enum map.
The key/value pairs are separated by a comma (
If a value contains a
If the value for a key is empty there is no trailing | |
| stringToEnumMap | back to summary |
|---|---|
| public static <E extends Enum Parses a string of key/value pairs into an enum map.
The key/value pairs are separated by a comma (
If a value contains a
If the value for a key is empty there is no trailing
| |
| stringToMap | back to summary |
|---|---|
| public static Map Parses a string of key/value pairs into a map.
The key/value pairs are separated by a comma (
If a key contains a
If a value contains a
If the value for a key is empty there is no trailing | |