Class Multiset<T>

  • All Implemented Interfaces:
    Iterable<T>, Collection<T>

    public final class Multiset<T>
    extends AbstractCollection<T>
    A Multiset is a set that allows for duplicate elements. Two Multisets are equal if they contain the same unique elements and if each unique element has as many occurrences in both multisets. Iteration order is not specified.
    NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.