Class LinkedHashMultiSet<T>

  • All Implemented Interfaces:
    java.lang.Iterable<T>, java.util.Collection<T>, MultiSet<T>, HTMLToString

    public class LinkedHashMultiSet<T>
    extends HashMultiSet<T>
    • Constructor Detail

      • LinkedHashMultiSet

        public LinkedHashMultiSet​(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
      • LinkedHashMultiSet

        public LinkedHashMultiSet​(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
      • LinkedHashMultiSet

        public LinkedHashMultiSet()
        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.