public class PairSet<T> extends AbstractSet<T> implements Set<T>
| Modifier and Type | Class and Description |
|---|---|
class |
PairSet.PairIterator
Iterate through first and second set filtering any duplicates that might be in both sets.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T o) |
boolean |
contains(Object o) |
Iterator<T> |
iterator() |
boolean |
remove(Object o) |
int |
size() |
equals, hashCode, removeAlladdAll, clear, containsAll, isEmpty, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, clear, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, spliterator, toArray, toArrayparallelStream, removeIf, streampublic boolean add(T o)
add in interface Collection<T>add in interface Set<T>add in class AbstractCollection<T>public boolean contains(Object o)
contains in interface Collection<T>contains in interface Set<T>contains in class AbstractCollection<T>public boolean remove(Object o)
remove in interface Collection<T>remove in interface Set<T>remove in class AbstractCollection<T>public int size()
size in interface Collection<T>size in interface Set<T>size in class AbstractCollection<T>Copyright © 2019. All rights reserved.