|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jjoost.collections.base.SynchronizedDelegator
org.jjoost.collections.sets.wrappers.SynchronizedArbitrarySet<V,MultiSet<V>>
org.jjoost.collections.sets.wrappers.SynchronizedMultiSet<V>
public class SynchronizedMultiSet<V>
| Constructor Summary | |
|---|---|
SynchronizedMultiSet(MultiSet<V> delegate)
|
|
| Method Summary | |
|---|---|
MultiSet<V> |
copy()
Returns a copy of the set. |
void |
put(V val,
int numberOfTimes)
Insert the value into the set the specified number of times. |
Set<V> |
unique()
Returns an AnySet (usually a Set) representing only the unique values
present in this set; if this set is already unique this method should return the set itself. |
| Methods inherited from class org.jjoost.collections.sets.wrappers.SynchronizedArbitrarySet |
|---|
add, all, apply, clear, clearAndReturn, contains, count, equality, first, isEmpty, iterator, list, permitsDuplicates, put, putAll, putIfAbsent, remove, remove, removeAndReturn, removeAndReturn, removeAndReturnFirst, removeAndReturnFirst, shrink, totalCount, uniqueCount |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jjoost.collections.MultiSet |
|---|
put |
| Methods inherited from interface org.jjoost.collections.AnySet |
|---|
add, clear, clearAndReturn, putAll, putIfAbsent, remove, remove, removeAndReturn, removeAndReturn, removeAndReturnFirst, removeAndReturnFirst, shrink |
| Methods inherited from interface org.jjoost.collections.AnyReadSet |
|---|
all, contains, count, equality, first, isEmpty, list, permitsDuplicates, totalCount, uniqueCount |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Methods inherited from interface org.jjoost.util.Function |
|---|
apply |
| Constructor Detail |
|---|
public SynchronizedMultiSet(MultiSet<V> delegate)
| Method Detail |
|---|
public MultiSet<V> copy()
AnySetSet or MultiSet).
copy in interface AnySet<V>copy in interface MultiSet<V>copy in class SynchronizedArbitrarySet<V,MultiSet<V>>
public void put(V val,
int numberOfTimes)
MultiSet
put in interface MultiSet<V>val - the valnumberOfTimes - the number of timespublic Set<V> unique()
AnySetAnySet (usually a Set) representing only the unique values
present in this set; if this set is already unique this method should return the set itself.
Changes to each set should be reflected in the other, however put() operations on the unique()
set will not be supported if the underlying set is not itself unique.
unique in interface AnyReadSet<V>unique in interface AnySet<V>unique in interface MultiSet<V>unique in class SynchronizedArbitrarySet<V,MultiSet<V>>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||