@Override public int hashCode() { if (getActionName() == null) { return 0; } return getActionName().hashCode(); }
@Override public String toString() { return getClass() + " (" + getActionName() + ")"; } }
@Override public boolean matches(Object otherEvent) { if (otherEvent == null) { return false; } boolean isMatching = false; if (getClass().isAssignableFrom(otherEvent.getClass())) { ActionExecutionEvent actionEvent = (ActionExecutionEvent) otherEvent; isMatching = getActionName() == null || getActionName().equals(actionEvent.getActionName()); } return isMatching; }
@Override public boolean equals(Object object) { if (object != null && getClass().isAssignableFrom(object.getClass())) { return StringUtils.equals(getActionName(), ((ActionExecutionEvent) object).getActionName()); } return false; }