/** 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
private Element writeAccess(InvAccessImpl access) { Element accessElem = new Element("access", defNS); accessElem.setAttribute("urlPath", access.getUrlPath()); if (access.getServiceName() != null) accessElem.setAttribute("serviceName", access.getServiceName()); if (access.getDataFormatType() != null) accessElem.setAttribute("dataFormat", access.getDataFormatType().toString()); if (access.hasDataSize()) accessElem.addContent(writeDataSize(access.getDataSize())); return accessElem; }
private Element writeAccess( InvAccessImpl access) { Element accessElem = new Element("access", defNS); accessElem.setAttribute("urlPath", access.getUrlPath()); if (access.getServiceName() != null) accessElem.setAttribute("serviceName", access.getServiceName()); if (access.getDataFormatType() != null) accessElem.setAttribute("dataFormat", access.getDataFormatType().toString()); if (access.hasDataSize()) accessElem.addContent( writeDataSize( access.getDataSize())); return accessElem; }
private Element writeAccess(InvAccessImpl access) { Element accessElem = new Element("access", defNS); accessElem.setAttribute("urlPath", access.getUrlPath()); if (access.getServiceName() != null) accessElem.setAttribute("serviceName", access.getServiceName()); if (access.getDataFormatType() != null) accessElem.setAttribute("dataFormat", access.getDataFormatType().toString()); if (access.hasDataSize()) accessElem.addContent(writeDataSize(access.getDataSize())); return accessElem; }