/** {@inheritDoc} */ public int compareTo(IReusedProjectPO otherReused) { int retVal = getName().compareTo(otherReused.getName()); if (retVal == 0) { retVal = getVersionString().compareTo(otherReused.getVersionString()); } return retVal; }
/** {@inheritDoc} */ public boolean equals(Object obj) { if (obj instanceof IReusedProjectPO) { IReusedProjectPO reused = (IReusedProjectPO) obj; return new EqualsBuilder() .append(getMajorNumber(), reused.getMajorNumber()) .append(getMinorNumber(), reused.getMinorNumber()) .append(getMicroNumber(), reused.getMicroNumber()) .append(getVersionQualifier(), reused.getVersionQualifier()) .append(getParentProjectId(), reused.getParentProjectId()) .append(getProjectGuid(), reused.getProjectGuid()) .isEquals(); } return super.equals(obj); }