Package be.imgn.gaia.core.collect
@NullMarked
package be.imgn.gaia.core.collect
Collections and collection utilities the JDK does not provide.
-
ClassDescriptionHashListMultimap<K,
V> HashMultiset<E>HashSetMultimap<K,V> ListMultimap<K,V> A multimap that keeps the values of each key in a list, in the order they were added, duplicates included.Static factories and collectors for unmodifiable maps that iterate in the order their keys are given.Collectors thatCollectorsdoes not provide.Gatherers thatGatherersdoes not provide.A function of an element and its index in a stream.MoreGatherers.IndexedPredicate<T extends @Nullable Object>A predicate of an element and its index in a stream.Multimap<K,V> A collection that maps keys to values, like aMap, but where a key may have several values: its entries are key-value pairs, and a key is in the multimap as long as it has a value.Static factories and collectors for unmodifiable multimaps that iterate over their keys in the order they first appear, and over the values of a key in the order they are given.Multiset<E>A collection that counts how many times it contains each element: its occurrences.An element of a multiset with its count.Static factories and a collector for unmodifiable multisets that iterate in the order their elements first appear, with all occurrences of an element in a row:multiset("foo", "bar", "foo")iterates overfoo, foo, bar.Range<C extends Comparable<? super C>>An interval of comparable values: all the values between a lower and an upper bound.Range.Bound<C>A bound of a range: closed, open, or absent.A bound that includes its endpoint.A bound that excludes its endpoint.The absence of a bound: the range extends forever on that side.SetMultimap<K,V> A multimap that keeps the values of each key in a set, without duplicates: adding an entry it already contains leaves it unchanged.Static factories and a collector for unmodifiable sets that iterate in the order their elements are given.A multiset that keeps its elements sorted, by their natural ordering or by a comparator: the multiset counterpart ofNavigableSet.TreeMultiset<E>