@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ItemNotification that = (ItemNotification) o; NodeInfo from = getFrom(); if (requestResult != that.requestResult) return false; if (!from.equals(that.getFrom())) return false; if (!itemId.equals(that.itemId)) return false; return itemResult.equals(that.itemResult); }