Class HashMultiSet<T>

    • Constructor Detail

      • HashMultiSet

        public HashMultiSet​(java.util.Collection<? extends T> collection)
        Constructs a new multiset, such that all elements of the given collection are added as many times as they are returned by the iterator of that collection.
        Parameters:
        collection - Representing the objects that should be put in a multiset
      • HashMultiSet

        public HashMultiSet​(T[] collection)
        Constructs a new multiset, such that all elements of the given collection are added as many times as they are in the given array.
        Parameters:
        collection - Representing the objects that should be put in a multiset
      • HashMultiSet

        public HashMultiSet()
        Constructs a new, empty multiset, such that all elements of the given collection are added as many times as they are returned by the iterator of that collection.