protected static class AbstractMultiSet.UniqueSet<E> extends AbstractSet<E>
Modifier and Type | Field and Description |
---|---|
protected AbstractMultiSet<E> |
parent
The parent multiset
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractMultiSet.UniqueSet(AbstractMultiSet<E> parent)
Constructs a new unique element view of the MultiSet.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
contains(Object key) |
boolean |
containsAll(Collection<?> coll) |
Iterator<E> |
iterator() |
boolean |
remove(Object key) |
int |
size() |
equals, hashCode, removeAll
add, addAll, isEmpty, retainAll, toArray, toArray, toString
protected final AbstractMultiSet<E> parent
protected AbstractMultiSet.UniqueSet(AbstractMultiSet<E> parent)
parent
- the parent MultiSetpublic boolean contains(Object key)
contains
in interface Collection<E>
contains
in interface Set<E>
contains
in class AbstractCollection<E>
public boolean containsAll(Collection<?> coll)
containsAll
in interface Collection<E>
containsAll
in interface Set<E>
containsAll
in class AbstractCollection<E>
public boolean remove(Object key)
remove
in interface Collection<E>
remove
in interface Set<E>
remove
in class AbstractCollection<E>
public int size()
size
in interface Collection<E>
size
in interface Set<E>
size
in class AbstractCollection<E>
public void clear()
clear
in interface Collection<E>
clear
in interface Set<E>
clear
in class AbstractCollection<E>
Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.