abstract class ExcluderBase extends Object implements Set<Hash>
| Modifier and Type | Field and Description |
|---|---|
protected Map<Hash,String> | _reasonsMaps peer hash to the reason it was excluded, for diagnostic logging. |
protected Set<Hash> | ss. |
| 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)add. |
boolean | addAll(Collection<? extends Hash> c)addAll. |
void | clear()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)containsAll. |
boolean | equals(Object o)equals. |
protected String | getReasonsSummary()Format exclusion summary grouped by reason (counts only, no peer hashes). |
int | hashCode() |
boolean | isEmpty() |
Iterator<Hash> | iterator()iterator. |
protected void | recordExclusion(Hash h,
String reason)Record why a peer was excluded, for diagnostic logging. |
boolean | remove(Object o)remove. |
boolean | removeAll(Collection<?> c)removeAll. |
boolean | retainAll(Collection<?> c)retainAll. |
int | size()size. |
Object[] | toArray()toArray. |
<Hash> Hash[] | toArray(Hash[] a)toArray. |
String | toString()toString. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitspliteratorparallelStream, removeIf, streamprotected final Map<Hash,String> _reasons
recordExclusion(net.i2p.data.Hash, java.lang.String).public boolean add(Hash h)
public boolean addAll(Collection<? extends Hash> c)
public void clear()
public abstract boolean contains(Object o)
public boolean containsAll(Collection<?> c)
containsAll in interface Collection<Hash>containsAll in interface Set<Hash>public boolean equals(Object o)
protected String getReasonsSummary()
_reasons.public int hashCode()
public boolean isEmpty()
protected void recordExclusion(Hash h, String reason)
h - the excluded peerreason - short reason string like "unreachable" or "not-ibgw"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)