/** * Returns <code>true</code> if this object is equal to the specified * object, and <code>false</code> otherwise. * * @param obj the other object. * * @return A boolean. */ public boolean equals(final Object obj) { if (this == obj) { return true; } if (!(obj instanceof SortOrder)) { return false; } final SortOrder that = (SortOrder) obj; if (!this.name.equals(that.toString())) { return false; } return true; }
/** * Returns <code>true</code> if this object is equal to the specified * object, and <code>false</code> otherwise. * * @param obj the other object. * * @return A boolean. */ public boolean equals(final Object obj) { if (this == obj) { return true; } if (!(obj instanceof SortOrder)) { return false; } final SortOrder that = (SortOrder) obj; if (!this.name.equals(that.toString())) { return false; } return true; }
/** * Returns <code>true</code> if this object is equal to the specified * object, and <code>false</code> otherwise. * * @param obj the other object. * * @return A boolean. */ public boolean equals(final Object obj) { if (this == obj) { return true; } if (!(obj instanceof SortOrder)) { return false; } final SortOrder that = (SortOrder) obj; if (!this.name.equals(that.toString())) { return false; } return true; }