Package be.imgn.gaia.core.collect


@NullMarked package be.imgn.gaia.core.collect
Collections and collection utilities the JDK does not provide.
  • Class
    Description
    A modifiable list multimap backed by a HashMap from each key to a ArrayList of its values.
    A modifiable multiset backed by a HashMap, the multiset counterpart of HashSet.
    A modifiable set multimap backed by a HashMap from each key to a HashSet of its values.
    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 that Collectors does not provide.
    Gatherers that Gatherers does not provide.
    MoreGatherers.IndexedFunction<T extends @Nullable Object, R extends @Nullable Object>
    A function of an element and its index in a stream.
    A predicate of an element and its index in a stream.
    A collection that maps keys to values, like a Map, 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.
    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 over foo, foo, bar.
    Range<C extends Comparable<? super C>>
    An interval of comparable values: all the values between a lower and an upper bound.
    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.
    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 of NavigableSet.
    A modifiable sorted multiset backed by a TreeMap, the multiset counterpart of TreeSet.