| Line 7... |
Line 7... |
| 7 |
import java.util.Objects;
|
7 |
import java.util.Objects;
|
| 8 |
|
8 |
|
| 9 |
public class CustomRetailer {
|
9 |
public class CustomRetailer {
|
| 10 |
private int partnerId;
|
10 |
private int partnerId;
|
| 11 |
private String code;
|
11 |
private String code;
|
| - |
|
12 |
private int astId;
|
| 12 |
|
13 |
|
| 13 |
public String getCode() {
|
14 |
public String getCode() {
|
| 14 |
return code;
|
15 |
return code;
|
| 15 |
}
|
16 |
}
|
| 16 |
|
17 |
|
| Line 50... |
Line 51... |
| 50 |
|
51 |
|
| 51 |
public void setLastName(String lastName) {
|
52 |
public void setLastName(String lastName) {
|
| 52 |
this.lastName = lastName;
|
53 |
this.lastName = lastName;
|
| 53 |
}
|
54 |
}
|
| 54 |
|
55 |
|
| - |
|
56 |
public int getAstId() {
|
| - |
|
57 |
return astId;
|
| - |
|
58 |
}
|
| - |
|
59 |
|
| - |
|
60 |
public void setAstId(int astId) {
|
| - |
|
61 |
this.astId = astId;
|
| - |
|
62 |
}
|
| - |
|
63 |
|
| 55 |
@Override
|
64 |
@Override
|
| 56 |
public String toString() {
|
65 |
public String toString() {
|
| 57 |
return "CustomRetailer [partnerId=" + partnerId + ", code=" + code + ", cartId=" + cartId + ", businessName=" + businessName + ", address=" + address + ", mobileNumber=" + mobileNumber + ", gstNumber=" + gstNumber + ", email=" + email + ", displayName=" + displayName + ", warehouseId=" + warehouseId + ", pan=" + pan + ", fofoType=" + fofoType + ", activationType=" + activationType + ", counterPotential=" + counterPotential + ", firstName=" + firstName + ", lastName=" + lastName + ", counterSize=" + counterSize + "]";
|
66 |
return "CustomRetailer [partnerId=" + partnerId + ", code=" + code + ", cartId=" + cartId + ",astId=" + astId + ", businessName=" + businessName + ", address=" + address + ", mobileNumber=" + mobileNumber + ", gstNumber=" + gstNumber + ", email=" + email + ", displayName=" + displayName + ", warehouseId=" + warehouseId + ", pan=" + pan + ", fofoType=" + fofoType + ", activationType=" + activationType + ", counterPotential=" + counterPotential + ", firstName=" + firstName + ", lastName=" + lastName + ", counterSize=" + counterSize + "]";
|
| 58 |
}
|
67 |
}
|
| 59 |
|
68 |
|
| 60 |
@Override
|
69 |
@Override
|
| 61 |
public boolean equals(Object obj) {
|
70 |
public boolean equals(Object obj) {
|
| 62 |
if (this == obj) return true;
|
71 |
if (this == obj) return true;
|
| Line 69... |
Line 78... |
| 69 |
} else if (!address.equals(other.address)) return false;
|
78 |
} else if (!address.equals(other.address)) return false;
|
| 70 |
if (businessName == null) {
|
79 |
if (businessName == null) {
|
| 71 |
if (other.businessName != null) return false;
|
80 |
if (other.businessName != null) return false;
|
| 72 |
} else if (!businessName.equals(other.businessName)) return false;
|
81 |
} else if (!businessName.equals(other.businessName)) return false;
|
| 73 |
if (cartId != other.cartId) return false;
|
82 |
if (cartId != other.cartId) return false;
|
| - |
|
83 |
if (astId != other.astId) return false;
|
| 74 |
if (code == null) {
|
84 |
if (code == null) {
|
| 75 |
if (other.code != null) return false;
|
85 |
if (other.code != null) return false;
|
| 76 |
} else if (!code.equals(other.code)) return false;
|
86 |
} else if (!code.equals(other.code)) return false;
|
| - |
|
87 |
|
| 77 |
if (Float.floatToIntBits(counterPotential) != Float.floatToIntBits(other.counterPotential)) return false;
|
88 |
if (Float.floatToIntBits(counterPotential) != Float.floatToIntBits(other.counterPotential)) return false;
|
| 78 |
if (counterSize != other.counterSize) return false;
|
89 |
if (counterSize != other.counterSize) return false;
|
| 79 |
if (displayName == null) {
|
90 |
if (displayName == null) {
|
| 80 |
if (other.displayName != null) return false;
|
91 |
if (other.displayName != null) return false;
|
| 81 |
} else if (!displayName.equals(other.displayName)) return false;
|
92 |
} else if (!displayName.equals(other.displayName)) return false;
|
| Line 109... |
Line 120... |
| 109 |
int result = 1;
|
120 |
int result = 1;
|
| 110 |
result = prime * result + ((activationType == null) ? 0 : activationType.hashCode());
|
121 |
result = prime * result + ((activationType == null) ? 0 : activationType.hashCode());
|
| 111 |
result = prime * result + ((address == null) ? 0 : address.hashCode());
|
122 |
result = prime * result + ((address == null) ? 0 : address.hashCode());
|
| 112 |
result = prime * result + ((businessName == null) ? 0 : businessName.hashCode());
|
123 |
result = prime * result + ((businessName == null) ? 0 : businessName.hashCode());
|
| 113 |
result = prime * result + cartId;
|
124 |
result = prime * result + cartId;
|
| - |
|
125 |
result = prime * result + astId;
|
| 114 |
result = prime * result + ((code == null) ? 0 : code.hashCode());
|
126 |
result = prime * result + ((code == null) ? 0 : code.hashCode());
|
| 115 |
result = prime * result + Float.floatToIntBits(counterPotential);
|
127 |
result = prime * result + Float.floatToIntBits(counterPotential);
|
| 116 |
result = prime * result + ((counterSize == null) ? 0 : counterSize.hashCode());
|
128 |
result = prime * result + ((counterSize == null) ? 0 : counterSize.hashCode());
|
| 117 |
result = prime * result + ((displayName == null) ? 0 : displayName.hashCode());
|
129 |
result = prime * result + ((displayName == null) ? 0 : displayName.hashCode());
|
| 118 |
result = prime * result + ((email == null) ? 0 : email.hashCode());
|
130 |
result = prime * result + ((email == null) ? 0 : email.hashCode());
|