/* (non-Javadoc) * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(Object obj) { if (obj instanceof XmlSource) { XmlSource other = (XmlSource) obj; return new EqualsBuilder() .append(getUrl(), other.getUrl()) .append( getXmlGroups().toArray(OF_XML_GROUPS), other.getXmlGroups().toArray(OF_XML_GROUPS)) .isEquals(); } return false; }
/* (non-Javadoc) * @see java.lang.Comparable#compareTo(java.lang.Object) */ public int compareTo(XmlSource obj) { return new CompareToBuilder() .append(getUrl(), obj.getUrl()) .append(getXmlGroups().toArray(OF_XML_GROUPS), obj.getXmlGroups().toArray(OF_XML_GROUPS)) .toComparison(); }