/** * 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; }
public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof Contributor)) return false; return o.hashCode() == this.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");
/** * 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; }
protected ThreddsMetadata.Contributor readContributor(Element elem) { if (elem == null) return null; return new ThreddsMetadata.Contributor( elem.getText(), elem.getAttributeValue("role")); }
public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof Contributor)) return false; return o.hashCode() == this.hashCode(); }
protected ThreddsMetadata.Contributor readContributor(Element elem) { if (elem == null) return null; return new ThreddsMetadata.Contributor(elem.getText(), elem.getAttributeValue("role")); }
protected ThreddsMetadata.Contributor readContributor(Element elem) { if (elem == null) return null; return new ThreddsMetadata.Contributor(elem.getText(), elem.getAttributeValue("role")); }
public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof Contributor)) return false; return o.hashCode() == this.hashCode(); }