Class AbstractMultiSet.EntrySet<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<MultiSet.Entry<E>>
-
- org.apache.commons.collections4.multiset.AbstractMultiSet.EntrySet<E>
-
- All Implemented Interfaces:
Iterable<MultiSet.Entry<E>>
,Collection<MultiSet.Entry<E>>
,Set<MultiSet.Entry<E>>
- Enclosing class:
- AbstractMultiSet<E>
protected static class AbstractMultiSet.EntrySet<E> extends AbstractSet<MultiSet.Entry<E>>
Inner class EntrySet.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
EntrySet(AbstractMultiSet<E> parent)
Constructs a new view of the MultiSet.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(Object obj)
Iterator<MultiSet.Entry<E>>
iterator()
boolean
remove(Object obj)
int
size()
-
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
-
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, containsAll, isEmpty, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.Set
add, addAll, clear, containsAll, isEmpty, retainAll, spliterator, toArray, toArray
-
-
-
-
Constructor Detail
-
EntrySet
protected EntrySet(AbstractMultiSet<E> parent)
Constructs a new view of the MultiSet.- Parameters:
parent
- the parent MultiSet
-
-
Method Detail
-
size
public int size()
- Specified by:
size
in interfaceCollection<E>
- Specified by:
size
in interfaceSet<E>
- Specified by:
size
in classAbstractCollection<MultiSet.Entry<E>>
-
iterator
public Iterator<MultiSet.Entry<E>> iterator()
- Specified by:
iterator
in interfaceCollection<E>
- Specified by:
iterator
in interfaceIterable<E>
- Specified by:
iterator
in interfaceSet<E>
- Specified by:
iterator
in classAbstractCollection<MultiSet.Entry<E>>
-
contains
public boolean contains(Object obj)
- Specified by:
contains
in interfaceCollection<E>
- Specified by:
contains
in interfaceSet<E>
- Overrides:
contains
in classAbstractCollection<MultiSet.Entry<E>>
-
remove
public boolean remove(Object obj)
- Specified by:
remove
in interfaceCollection<E>
- Specified by:
remove
in interfaceSet<E>
- Overrides:
remove
in classAbstractCollection<MultiSet.Entry<E>>
-
-