abstract class ExcluderBase extends Object implements Set<Hash>
Modifier | Constructor and Description |
---|---|
protected |
ExcluderBase(Set<Hash> set)
Automatically check if peer is connected
and add the Hash to the set if not.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(Hash h) |
boolean |
addAll(Collection<? extends Hash> c) |
void |
clear() |
abstract boolean |
contains(Object o)
Automatically check if peer is allowed
and add the Hash to the set if not.
|
boolean |
containsAll(Collection<?> c) |
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isEmpty() |
Iterator<Hash> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<Hash> Hash[] |
toArray(Hash[] a) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
spliterator
parallelStream, removeIf, stream
public abstract boolean contains(Object o)
public boolean add(Hash h)
public boolean addAll(Collection<? extends Hash> c)
public void clear()
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<Hash>
containsAll
in interface Set<Hash>
public boolean equals(Object o)
public int hashCode()
public boolean isEmpty()
public boolean remove(Object o)
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public int size()
public Object[] toArray()
public <Hash> Hash[] toArray(Hash[] a)