return false;
}
- final Orderable other = (Orderable) object;
+ final Orderable orderable = (Orderable) object;
- if (!Objects.equals(this.getAccessKey(), other.getAccessKey())) {
+ if (!Objects.equals(this.getAccessKey(), orderable.getAccessKey())) {
return false;
- } else if (!Objects.equals(this.getCustomer(), other.getCustomer())) {
+ } else if (!Objects.equals(this.getCustomer(), orderable.getCustomer())) {
return false;
- } else if (!Objects.equals(this.getOrderId(), other.getOrderId())) {
+ } else if (!Objects.equals(this.getOrderId(), orderable.getOrderId())) {
return false;
- } else if (!Objects.equals(this.getOrderedItems(), other.getOrderedItems())) {
+ } else if (!Objects.equals(this.getOrderedItems(), orderable.getOrderedItems())) {
return false;
}
return true;
}
- @Override
- public int hashCode () {
- int hash = 7;
- hash = 61 * hash + Objects.hashCode(this.getAccessKey());
- hash = 61 * hash + Objects.hashCode(this.getCustomer());
- hash = 61 * hash + Objects.hashCode(this.getOrderId());
- hash = 61 * hash + Objects.hashCode(this.getOrderedItems());
- return hash;
- }
-
@Override
public String getAccessKey () {
return this.accessKey;
}
@Override
+ @SuppressWarnings ("ReturnOfDateField")
public Date getOrderCreated () {
return this.orderCreated;
}
@Override
+ @SuppressWarnings ("AssignmentToDateFieldFromParameter")
public void setOrderCreated (final Date orderCreated) {
this.orderCreated = orderCreated;
}
}
@Override
+ @SuppressWarnings ("ReturnOfCollectionOrArrayField")
public List<AddableBasketItem> getOrderedItems () {
return this.orderedItems;
}
@Override
+ @SuppressWarnings ("AssignmentToCollectionOrArrayFieldFromParameter")
public void setOrderedItems (final List<AddableBasketItem> orderedItems) {
this.orderedItems = orderedItems;
}
+ @Override
+ public int hashCode () {
+ int hash = 7;
+
+ hash = 61 * hash + Objects.hashCode(this.getAccessKey());
+ hash = 61 * hash + Objects.hashCode(this.getCustomer());
+ hash = 61 * hash + Objects.hashCode(this.getOrderId());
+ hash = 61 * hash + Objects.hashCode(this.getOrderedItems());
+
+ return hash;
+ }
+
}