Class HashMultiset<E>

java.lang.Object
org.spockframework.util.AbstractMultiset<E>
org.spockframework.util.HashMultiset<E>
Type Parameters:
E - the element type of the multiset
All Implemented Interfaces:
Iterable<E>, Collection<E>, IMultiset<E>

public class HashMultiset<E> extends AbstractMultiset<E>
HashMap based implementation of IMultiset. Iteration order is not guaranteed.
  • Constructor Details

    • HashMultiset

      public HashMultiset()
    • HashMultiset

      public HashMultiset(Collection<? extends E> collection)