Package net.sf.colossus.util
Class MultiSet<T>
java.lang.Object
net.sf.colossus.util.MultiSet<T>
Class MultiSet is a set that can contain more than one of the same
element, built around a HashMap that maps objects to Integer counts.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
map
-
-
Constructor Details
-
MultiSet
public MultiSet()
-
-
Method Details
-
add
-
remove
Remove one of key from the set, if present. Return true iff it was present. -
size
public int size() -
contains
-
count
-
keySet
-
values
-
isEmpty
public boolean isEmpty() -
max
public int max()
-