return Objects.equals(this.product, item.getItemProduct());
}
- @Override
- public int hashCode () {
- int hash = 3;
- hash = 53 * hash + Objects.hashCode(this.getItemType());
- hash = 53 * hash + Objects.hashCode(this.getOrderedAmount());
- hash = 53 * hash + Objects.hashCode(this.getItemProduct());
- return hash;
- }
-
@Override
public Long getItemId () {
return this.itemId;
this.orderedAmount = orderedAmount;
}
+ @Override
+ public int hashCode () {
+ int hash = 3;
+ hash = 53 * hash + Objects.hashCode(this.getItemType());
+ hash = 53 * hash + Objects.hashCode(this.getOrderedAmount());
+ hash = 53 * hash + Objects.hashCode(this.getItemProduct());
+ return hash;
+ }
+
}