|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection
common.AbstractMultiset
common.SetBackedMultiset
public class SetBackedMultiset
An unmodifiable Multiset implementation that just wraps around a Set object.
| Constructor Summary | |
|---|---|
SetBackedMultiset(java.util.Set s)
Creates a new SetBackedMultiset that will be backed by the given set. |
|
| Method Summary | |
|---|---|
int |
count(java.lang.Object o)
Returns the number of occurrences of the given element in this multiset. |
java.util.Set |
entrySet()
Returns the set of entries in the multiset. |
java.util.Iterator |
iterator()
Returns an iterator over this multiset. |
int |
size()
Returns the number of elements in this multiset. |
| Methods inherited from class common.AbstractMultiset |
|---|
contains, equals, hashCode |
| Methods inherited from class java.util.AbstractCollection |
|---|
add, addAll, clear, containsAll, isEmpty, remove, removeAll, retainAll, 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, remove, removeAll, retainAll, toArray, toArray |
| Constructor Detail |
|---|
public SetBackedMultiset(java.util.Set s)
| Method Detail |
|---|
public int size()
size in interface java.util.Collectionsize in class java.util.AbstractCollectionpublic int count(java.lang.Object o)
count in interface Multisetcount in class AbstractMultisetpublic java.util.Iterator iterator()
iterator in interface java.lang.Iterableiterator in interface java.util.Collectioniterator in class java.util.AbstractCollectionpublic java.util.Set entrySet()
entrySet in interface MultisetentrySet in class AbstractMultiset
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||