| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static <T> List | createIfNull(List<T> currentValue)
Returns passed currentValue if it is not null and creates a new ArrayList if it is null. |
| public static <T> T[] | |
| public static <T> Set | |
| public static <T, E> Map | |
| public static String | Returns: the properly cased key, if found, or null if not foundthe key to search for, in any case key, Map<String, Object> the map in which to search map)Find the actual key in a map, by searching the keys in the map and checking them ignoring case. |
| public static Map | |
| private static Map | |
| public static <T> List | |
| private static <T> void | |
| public static <T> Set |
| CollectionUtil | back to summary |
|---|---|
| public CollectionUtil() | |
| createIfNull | back to summary |
|---|---|
| public static <T> List Returns passed currentValue if it is not null and creates a new ArrayList if it is null.
| |
| createIfNull | back to summary |
|---|---|
| public static <T> T[] createIfNull(T[] arguments) Returns a new empty array if the passed array is null. | |
| createIfNull | back to summary |
|---|---|
| public static <T> Set Returns a new empty set if the passed set is null. | |
| createIfNull | back to summary |
|---|---|
| public static <T, E> Map Returns a new empty map if the passed map is null. | |
| findKeyInMapIgnoreCase | back to summary |
|---|---|
| public static String findKeyInMapIgnoreCase(String key, Map<String, Object> map) Find the actual key in a map, by searching the keys in the map and checking them ignoring case. | |
| flatten | back to summary |
|---|---|
| public static Map Converts a set of nested maps (like from yaml/json) into a flat map with dot-separated properties | |
| flatten | back to summary |
|---|---|
| private static Map | |
| permutations | back to summary |
|---|---|
| public static <T> List | |
| permute | back to summary |
|---|---|
| private static <T> void permute(Map<String, T> basePermutation, List<String> remainingKeys, Map<String, List<T>> parameterValues, List<Map<String, T>> returnList) | |
| powerSet | back to summary |
|---|---|
| public static <T> Set | |