@Override public String toString() { return new ToStringBuilder(this) .append("accession", accession) .append("name", name) .append("type", type) .append("created", created) .append("updated", updated) .append("description", getDescription()) .append("abstract", getAbstract()) .append("signatures", getSignatures()) // .append("releases", getReleases()) // .append("pathwayXRefs", getPathwayXRefs()) // .append("goXRefs", getGoXRefs()) .toString(); } }
@Override public int hashCode() { return new HashCodeBuilder(87, 23) .append(accession) .append(name) .append(type) .append(created) .append(updated) .append(getDescription()) .append(getAbstract()) // TODO: Figure out why adding signatures to hashCode() causes Entry.equals() to fail .append(getSignatures()) // .append(getReleases()) // .append(getPathwayXRefs()) // .append(getGoXRefs()) .toHashCode(); }
@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof Entry)) return false; final Entry e = (Entry) o; return new EqualsBuilder() .append(accession, e.accession) .append(name, e.name) .append(type, e.type) .append(created, e.created) .append(updated, e.updated) .append(getDescription(), e.getDescription()) .append(getAbstract(), e.getAbstract()) .append(signatures, e.getSignatures()) // .append(releases, e.getReleases()) // .append(pathwayXRefs, e.getPathwayXRefs()) // .append(goXRefs, e.getGoXRefs()) .isEquals(); }
if (interProEntry != null) { mappingFields.add(interProEntry.getDescription()); // The corresponding entry description (if iprlookup requested by the user)
if (interProEntry != null) { mappingFields.add(interProEntry.getAccession()); mappingFields.add(interProEntry.getDescription()); if (mapToGO) { List<GoXref> goXRefs = new ArrayList<>(interProEntry.getGoXRefs());
if (interProEntry != null) { mappingFields.add(interProEntry.getAccession()); mappingFields.add(interProEntry.getDescription()); if (mapToGO) { List<GoXref> goXRefs = new ArrayList<>(interProEntry.getGoXRefs());
if (interProEntry != null) { mappingFields.add(interProEntry.getDescription()); // The corresponding entry description (if iprlookup requested by the user)