/** * 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 != getRole()) result = 37 * result + getRole().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 != getRole()) result = 37 * result + getRole().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 != getRole()) result = 37 * result + getRole().hashCode(); hashCode = result; } return hashCode; }
buff.append("<h3>Contributors:</h3>\n<ul>\n"); for (ThreddsMetadata.Contributor t : contributors) { String role = (t.getRole() == null) ? "" : "<strong> (" + StringUtil2.quoteHtmlContent(t.getRole()) + ")</strong> "; buff.append(" <li>").append(StringUtil2.quoteHtmlContent(t.getName())).append(role).append("</li>\n");
buff.append("<h3>Contributors:</h3>\n<ul>\n"); for (ThreddsMetadata.Contributor t : contributors) { String role = (t.getRole() == null) ? "" : "<strong> (" + StringUtil2.quoteHtmlContent(t.getRole()) + ")</strong> "; buff.append(" <li>").append(StringUtil2.quoteHtmlContent(t.getName())).append(role).append("</li>\n");
buff.append("<h3>Contributors:</h3>\n<ul>\n"); for (ThreddsMetadata.Contributor t : contributors) { String role = (t.getRole() == null) ? "" : "<strong> (" + StringUtil2.quoteHtmlContent(t.getRole()) + ")</strong> "; buff.append(" <li>").append(StringUtil2.quoteHtmlContent(t.getName())).append(role).append("</li>\n");
for (thredds.catalog.ThreddsMetadata.Contributor contributor : contributors) { System.out.println(" contributor.getName() = " + contributor.getName()); System.out.println(" contributor.getRole() = " + contributor.getRole());