]> git.mxchange.org Git - jshop-core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Sun, 22 Jan 2023 03:45:52 +0000 (04:45 +0100)
committerRoland Häder <roland@mxchange.org>
Sun, 22 Jan 2023 03:45:52 +0000 (04:45 +0100)
- moved class member to proper position (sorted members)

src/org/mxchange/jshopcore/model/order/items/OrderItem.java

index 78884f43ec9495445bc864d8056570064c0fa728..a28017efd7ed026db710be60b9e5086313cba7c2 100644 (file)
@@ -111,15 +111,6 @@ public class OrderItem extends BaseItem implements AddableBasketItem {
                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;
@@ -160,4 +151,13 @@ public class OrderItem extends BaseItem implements AddableBasketItem {
                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;
+       }
+
 }