public interface MultiSet<E>
extends java.util.Collection<E>, java.io.Serializable
Modifier and Type | Method and Description |
---|---|
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
|
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 subtractedboolean subtraction(java.util.Collection<?> objects, long multiplicity)
objects
- the collection of objects to be subtractedmultiplicity
- the number of times the objects will be subtractedjava.util.Set<E> entrySet()
long longSize()