Package org.rspeer.commons
Class Multiset<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- java.util.HashSet<E>
-
- org.rspeer.commons.Multiset<E>
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<E>
,Collection<E>
,Set<E>
public class Multiset<E> extends HashSet<E>
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(E element)
boolean
addAll(Collection<? extends E> elements)
void
clear()
int
count(E element)
Set<Map.Entry<E,Integer>>
entries()
E
maximum()
E
minimum()
boolean
remove(Object o)
int
uniqueCount()
-
Methods inherited from class java.util.HashSet
clone, contains, isEmpty, iterator, size, spliterator
-
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
-
Methods inherited from class java.util.AbstractCollection
containsAll, retainAll, toArray, toArray, toString
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
-
-
-
Method Detail
-
add
public boolean add(E element)
-
addAll
public boolean addAll(Collection<? extends E> elements)
- Specified by:
addAll
in interfaceCollection<E>
- Specified by:
addAll
in interfaceSet<E>
- Overrides:
addAll
in classAbstractCollection<E>
-
remove
public boolean remove(Object o)
-
clear
public void clear()
-
count
public int count(E element)
-
uniqueCount
public int uniqueCount()
-
maximum
public E maximum()
-
minimum
public E minimum()
-
-