Package org.drasyl.handler.discovery
Class DuplicatePathEventFilter
java.lang.Object
org.drasyl.handler.discovery.DuplicatePathEventFilter
This class can be used to filter equal events for a given peer (identifies by
PathEvent.getAddress()
).-
Constructor Summary
-
Method Summary
-
Constructor Details
-
DuplicatePathEventFilter
public DuplicatePathEventFilter()
-
-
Method Details
-
add
- Returns:
true
if the last (if any)PathEvent
is not equal toevent
. Otherwisefalse
.
-