|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MultiSet<E>
Method Summary | |
---|---|
boolean |
add(E object,
long multiplicity)
Add an object to the multiset |
boolean |
addAll(java.util.Collection<? extends E> objects,
long multiplicity)
Add several objects to the multiset |
long |
count(java.lang.Object object)
|
long |
countSubSets(java.util.Collection<?> objects)
counts the number of subsets |
java.util.Set<E> |
entrySet()
Get the set of objects without repetitions Changes in this set will affect the multiset |
long |
longSize()
|
boolean |
remove(java.lang.Object object,
long multiplicity)
Remove several objects of the multiset |
boolean |
subtraction(java.util.Collection<?> objects)
Subtraction between multisets |
boolean |
subtraction(java.util.Collection<?> objects,
long multiplicity)
subtracts the objects in objects a number of times equal to multiplicity |
Methods inherited from interface java.util.Collection |
---|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
Method Detail |
---|
long count(java.lang.Object object)
object
-
long countSubSets(java.util.Collection<?> objects)
objects
-
boolean add(E object, long multiplicity)
object
- multiplicity
-
boolean addAll(java.util.Collection<? extends E> objects, long multiplicity)
objects
- multiplicity
-
boolean remove(java.lang.Object object, long multiplicity)
object
- multiplicity
-
boolean subtraction(java.util.Collection<?> objects)
objects
- a collection containing the objects to be subtracted
boolean subtraction(java.util.Collection<?> objects, long multiplicity)
objects
- the collection of objects to be subtractedmultiplicity
- the number of times the objects will be subtracted
java.util.Set<E> entrySet()
long longSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |