|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection
common.AbstractMultiset
public abstract class AbstractMultiset
Abstract implementation of the Multiset class.
Nested Class Summary | |
---|---|
static class |
AbstractMultiset.Entry
Abstract implementation of the Multiset.Entry interface. |
Constructor Summary | |
---|---|
AbstractMultiset()
|
Method Summary | |
---|---|
boolean |
contains(java.lang.Object o)
Returns true if count(o) returns a number greater
than zero. |
abstract int |
count(java.lang.Object o)
Returns the number of occurrences of the given element in this multiset. |
abstract java.util.Set |
entrySet()
Returns the set of entries in the multiset. |
boolean |
equals(java.lang.Object o)
Two multisets are equal if they have the same elements with the same occurrence counts. |
int |
hashCode()
|
Methods inherited from class java.util.AbstractCollection |
---|
add, addAll, clear, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Collection |
---|
add, addAll, clear, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
Constructor Detail |
---|
public AbstractMultiset()
Method Detail |
---|
public abstract int count(java.lang.Object o)
count
in interface Multiset
public abstract java.util.Set entrySet()
add
or addAll
methods.
entrySet
in interface Multiset
public boolean contains(java.lang.Object o)
count(o)
returns a number greater
than zero.
contains
in interface java.util.Collection
contains
in class java.util.AbstractCollection
public boolean equals(java.lang.Object o)
equals
in interface java.util.Collection
equals
in class java.lang.Object
public int hashCode()
hashCode
in interface java.util.Collection
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |