/** * InvServices with same values are equal */ public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof InvService)) return false; return o.hashCode() == this.hashCode(); }
/** * InvServices with same values are equal */ public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof InvService)) return false; return o.hashCode() == this.hashCode(); }
/** Override Object.hashCode() to implement equals. */ public int hashCode() { if (hashCode == 0) { int result = 17; if (urlPath != null) result = 37*result + urlPath.hashCode(); if (service != null) result = 37*result + service.hashCode(); if (hasDataSize()) result = 37*result + (int) getDataSize(); hashCode = result; } return hashCode; } private volatile int hashCode = 0; // Bloch, item 8
/** Override Object.hashCode() to implement equals. */ public int hashCode() { if (hashCode == 0) { int result = 17; if (urlPath != null) result = 37*result + urlPath.hashCode(); if (service != null) result = 37*result + service.hashCode(); if (hasDataSize()) result = 37*result + (int) getDataSize(); hashCode = result; } return hashCode; } private volatile int hashCode = 0; // Bloch, item 8
/** Override Object.hashCode() to implement equals. */ public int hashCode() { if (hashCode == 0) { int result = 17; if (urlPath != null) result = 37*result + urlPath.hashCode(); if (service != null) result = 37*result + service.hashCode(); if (hasDataSize()) result = 37*result + (int) getDataSize(); hashCode = result; } return hashCode; } private volatile int hashCode = 0; // Bloch, item 8
result = 37 * result + getDataFormatType().hashCode(); if (null != getServiceDefault()) result = 37 * result + getServiceDefault().hashCode(); if (null != getUrlPath()) result = 37 * result + getUrlPath().hashCode();
result = 37 * result + getDataFormatType().hashCode(); if (null != getServiceDefault()) result = 37 * result + getServiceDefault().hashCode(); if (null != getUrlPath()) result = 37 * result + getUrlPath().hashCode();
result = 37 * result + getDataFormatType().hashCode(); if (null != getServiceDefault()) result = 37 * result + getServiceDefault().hashCode(); if (null != getUrlPath()) result = 37 * result + getUrlPath().hashCode();