/** * Override Object.hashCode() to implement equals. */ public int hashCode() { if (hashCode == 0) { int result = 17; // result = 37*result + dataset.getName().hashCode(); result = 37 * result + getName().hashCode(); if (null != getVocabulary()) result = 37 * result + getVocabulary().hashCode(); if (null != getUrl()) result = 37 * result + getUrl().hashCode(); if (null != getEmail()) result = 37 * result + getEmail().hashCode(); hashCode = result; } return hashCode; }
/** * Override Object.hashCode() to implement equals. */ public int hashCode() { if (hashCode == 0) { int result = 17; // result = 37*result + dataset.getName().hashCode(); result = 37 * result + getName().hashCode(); if (null != getVocabulary()) result = 37 * result + getVocabulary().hashCode(); if (null != getUrl()) result = 37 * result + getUrl().hashCode(); if (null != getEmail()) result = 37 * result + getEmail().hashCode(); hashCode = result; } return hashCode; }
/** * Override Object.hashCode() to implement equals. */ public int hashCode() { if (hashCode == 0) { int result = 17; // result = 37*result + dataset.getName().hashCode(); result = 37 * result + getName().hashCode(); if (null != getVocabulary()) result = 37 * result + getVocabulary().hashCode(); if (null != getUrl()) result = 37 * result + getUrl().hashCode(); if (null != getEmail()) result = 37 * result + getEmail().hashCode(); hashCode = result; } return hashCode; }
System.out.println(" creator.getEmail() = " + creator.getEmail()); System.out.println(" creator.getUrl() = " + creator.getUrl()); System.out.println(" creator.getVocabulary() = " + creator.getVocabulary()); System.out.println(" publisher.getEmail() = " + publisher.getEmail()); System.out.println(" publisher.getUrl() = " + publisher.getUrl()); System.out.println(" publisher.getVocabulary() = " + publisher.getVocabulary());