protected static class AbstractMultiSet.EntrySet<E> extends AbstractSet<MultiSet.Entry<E>>
Modifier | Constructor and Description |
---|---|
protected |
EntrySet(AbstractMultiSet<E> parent)
Constructs a new view of the MultiSet.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Object obj) |
Iterator<MultiSet.Entry<E>> |
iterator() |
boolean |
remove(Object obj) |
int |
size() |
equals, hashCode, removeAll
add, addAll, clear, containsAll, isEmpty, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, addAll, clear, containsAll, isEmpty, retainAll, spliterator, toArray, toArray
parallelStream, removeIf, stream
protected EntrySet(AbstractMultiSet<E> parent)
parent
- the parent MultiSetpublic int size()
size
in interface Collection<MultiSet.Entry<E>>
size
in interface Set<MultiSet.Entry<E>>
size
in class AbstractCollection<MultiSet.Entry<E>>
public Iterator<MultiSet.Entry<E>> iterator()
iterator
in interface Iterable<MultiSet.Entry<E>>
iterator
in interface Collection<MultiSet.Entry<E>>
iterator
in interface Set<MultiSet.Entry<E>>
iterator
in class AbstractCollection<MultiSet.Entry<E>>
public boolean contains(Object obj)
contains
in interface Collection<MultiSet.Entry<E>>
contains
in interface Set<MultiSet.Entry<E>>
contains
in class AbstractCollection<MultiSet.Entry<E>>
public boolean remove(Object obj)
remove
in interface Collection<MultiSet.Entry<E>>
remove
in interface Set<MultiSet.Entry<E>>
remove
in class AbstractCollection<MultiSet.Entry<E>>
Copyright © 2001–2019 The Apache Software Foundation. All rights reserved.