@Override public final boolean equals(Object object) { if (this == object) return true; if (object == null || getClass() != object.getClass()) return false; ResourceValue that = (ResourceValue) object; return this.getUUID().equals(that.getUUID()); }
/** * Resource values are ordered by there name. * * @param that other resource value. * @return an integer denoting the comparison of this resource value with that resource value. */ @Override public final int compareTo(ResourceValue that) { return this.getName().compareTo(that.getName()); }