Package com.kingsrook.qqq.backend.core.utils.collections
package com.kingsrook.qqq.backend.core.utils.collections
-
ClassesClassDescriptionComparator for strings that are a mix of alpha + numeric, where we want to sort the numeric substrings like numbers.Version of map where string keys are handled case-insensitively.ListBuilder<E>List.of is "great", but annoying because it makes unmodifiable lists...MapBuilder<K,
V, M extends Map<K, V>> Map.of is "great", but annoying because it makes unmodifiable maps, and it NPE's on nulls...Help you use a multi-level map, such as: Map[String, Map[String, Integer]] countryStateCountMap = new HashMap[](); Where you always want to put new maps at the lower-level if they aren't there, and similarly, you want to start with a 0 for the value under each (final) key.MutableList<T>Object to wrap a List, so that in case a caller provided an immutable List, you can safely perform mutating operations on it (in which case, it'll get replaced by an actual mutable list).MutableMap<K,V> Object to wrap a Map, so that in case a caller provided an immutable Map, you can safely perform mutating operations on it (in which case, it'll get replaced by an actual mutable Map).TransformedKeyMap<OK,TK, V> Version of a map that uses a transformation function on keys.