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 protectedEntrySet(AbstractMultiSet<E> parent)Constructs a new view of the MultiSet.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(Object obj)Iterator<MultiSet.Entry<E>>iterator()booleanremove(Object obj)intsize()-
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:
sizein interfaceCollection<E>- Specified by:
sizein interfaceSet<E>- Specified by:
sizein classAbstractCollection<MultiSet.Entry<E>>
-
iterator
public Iterator<MultiSet.Entry<E>> iterator()
- Specified by:
iteratorin interfaceCollection<E>- Specified by:
iteratorin interfaceIterable<E>- Specified by:
iteratorin interfaceSet<E>- Specified by:
iteratorin classAbstractCollection<MultiSet.Entry<E>>
-
contains
public boolean contains(Object obj)
- Specified by:
containsin interfaceCollection<E>- Specified by:
containsin interfaceSet<E>- Overrides:
containsin classAbstractCollection<MultiSet.Entry<E>>
-
remove
public boolean remove(Object obj)
- Specified by:
removein interfaceCollection<E>- Specified by:
removein interfaceSet<E>- Overrides:
removein classAbstractCollection<MultiSet.Entry<E>>
-
-