final class Multiset<T>
extends java.util.AbstractCollection<T>
Modifier and Type | Field and Description |
---|---|
private java.util.Map<T,java.lang.Integer> |
map |
private int |
size |
Modifier and Type | Method and Description |
---|---|
boolean |
add(T e) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.util.Iterator<T> |
iterator() |
boolean |
remove(java.lang.Object o) |
int |
size() |
addAll, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
private final java.util.Map<T,java.lang.Integer> map
private int size
Multiset()
Multiset
.public java.util.Iterator<T> iterator()
public int size()
public void clear()
public boolean add(T e)
public boolean remove(java.lang.Object o)
public boolean contains(java.lang.Object o)
public boolean equals(java.lang.Object obj)
equals
in interface java.util.Collection<T>
equals
in class java.lang.Object
public int hashCode()
hashCode
in interface java.util.Collection<T>
hashCode
in class java.lang.Object