|
|||||||||
| 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 Multisetpublic abstract java.util.Set entrySet()
add or addAll methods.
entrySet in interface Multisetpublic boolean contains(java.lang.Object o)
count(o) returns a number greater
than zero.
contains in interface java.util.Collectioncontains in class java.util.AbstractCollectionpublic boolean equals(java.lang.Object o)
equals in interface java.util.Collectionequals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.util.CollectionhashCode in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||