Class DuplicatePathEventFilter

java.lang.Object
org.drasyl.handler.discovery.DuplicatePathEventFilter

public class DuplicatePathEventFilter extends Object
This class can be used to filter equal events for a given peer (identifies by PathEvent.getAddress()).
  • Constructor Details

    • DuplicatePathEventFilter

      public DuplicatePathEventFilter()
  • Method Details

    • add

      public boolean add(PathEvent event)
      Returns:
      true if the last (if any) PathEvent is not equal to event. Otherwise false.