@Test public void matches() { EventStatusAddOrUpdatedEvent event = new EventStatusAddOrUpdatedEvent(); assertTrue(event.matches(event)); assertTrue(event.matches(new EventStatusAddOrUpdatedEvent())); assertFalse(event.matches(new ApplicationStartedEvent())); }
@Override public boolean matches(Object otherEvent) { return otherEvent.getClass() == getClass(); }
EventStatusAddOrUpdatedEvent implements Event, Serializable { @Override public boolean matches(Object otherEvent) { return otherEvent.getClass() == getClass(); } }
EventStatusAddOrUpdatedEvent implements Event, Serializable { @Override public boolean matches(Object otherEvent) { return otherEvent.getClass() == getClass(); }  }
EventStatusAddOrUpdatedEvent implements Event, Serializable { @Override public boolean matches(Object otherEvent) { return otherEvent.getClass() == getClass(); }  @Override boolean matches(Object otherEvent); }
EventStatusAddOrUpdatedEvent implements Event, Serializable { @Override public boolean matches(Object otherEvent) { return otherEvent.getClass() == getClass(); }  @Override boolean matches(Object otherEvent);  }