|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gcn.plinguacore.util.InmutableMultiSet<E>
E
- public class InmutableMultiSet<E>
An inmutable multiset. All methods that attempts to change the inner state throws NotSupportedException
Constructor Summary | |
---|---|
InmutableMultiSet()
|
|
InmutableMultiSet(MultiSet<E> multiset)
|
Method Summary | ||
---|---|---|
boolean |
add(E arg0)
|
|
boolean |
add(E object,
long multiplicity)
Add an object to the multiset |
|
boolean |
addAll(java.util.Collection<? extends E> arg0)
|
|
boolean |
addAll(java.util.Collection<? extends E> objects,
long multiplicity)
Add several objects to the multiset |
|
void |
clear()
|
|
boolean |
contains(java.lang.Object arg0)
|
|
boolean |
containsAll(java.util.Collection<?> arg0)
|
|
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 |
|
boolean |
equals(java.lang.Object arg0)
|
|
int |
hashCode()
|
|
boolean |
isEmpty()
|
|
java.util.Iterator<E> |
iterator()
|
|
long |
longSize()
|
|
boolean |
remove(java.lang.Object arg0)
|
|
boolean |
remove(java.lang.Object object,
long multiplicity)
Remove several objects of the multiset |
|
boolean |
removeAll(java.util.Collection<?> arg0)
|
|
boolean |
retainAll(java.util.Collection<?> arg0)
|
|
int |
size()
|
|
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 |
|
java.lang.Object[] |
toArray()
|
|
|
toArray(T[] arg0)
|
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public InmutableMultiSet()
public InmutableMultiSet(MultiSet<E> multiset)
Method Detail |
---|
public boolean add(E object, long multiplicity)
MultiSet
add
in interface MultiSet<E>
public boolean addAll(java.util.Collection<? extends E> objects, long multiplicity)
MultiSet
addAll
in interface MultiSet<E>
public long longSize()
longSize
in interface MultiSet<E>
public long count(java.lang.Object object)
count
in interface MultiSet<E>
public long countSubSets(java.util.Collection<?> objects)
MultiSet
countSubSets
in interface MultiSet<E>
public java.util.Set<E> entrySet()
MultiSet
entrySet
in interface MultiSet<E>
public boolean remove(java.lang.Object object, long multiplicity)
MultiSet
remove
in interface MultiSet<E>
public boolean subtraction(java.util.Collection<?> objects, long multiplicity)
MultiSet
subtraction
in interface MultiSet<E>
objects
- the collection of objects to be subtractedmultiplicity
- the number of times the objects will be subtracted
public boolean subtraction(java.util.Collection<?> objects)
MultiSet
subtraction
in interface MultiSet<E>
objects
- a collection containing the objects to be subtracted
public boolean add(E arg0)
add
in interface java.util.Collection<E>
public boolean addAll(java.util.Collection<? extends E> arg0)
addAll
in interface java.util.Collection<E>
public void clear()
clear
in interface java.util.Collection<E>
public boolean contains(java.lang.Object arg0)
contains
in interface java.util.Collection<E>
public boolean containsAll(java.util.Collection<?> arg0)
containsAll
in interface java.util.Collection<E>
public boolean isEmpty()
isEmpty
in interface java.util.Collection<E>
public java.util.Iterator<E> iterator()
iterator
in interface java.lang.Iterable<E>
iterator
in interface java.util.Collection<E>
public boolean remove(java.lang.Object arg0)
remove
in interface java.util.Collection<E>
public boolean removeAll(java.util.Collection<?> arg0)
removeAll
in interface java.util.Collection<E>
public boolean retainAll(java.util.Collection<?> arg0)
retainAll
in interface java.util.Collection<E>
public int size()
size
in interface java.util.Collection<E>
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection<E>
public <T> T[] toArray(T[] arg0)
toArray
in interface java.util.Collection<E>
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object arg0)
equals
in interface java.util.Collection<E>
equals
in class java.lang.Object
public int hashCode()
hashCode
in interface java.util.Collection<E>
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |