/** * Compares the specified object with this parameter for equality. * * @param object The object to compare to {@code this}. * @return {@code true} if both objects are equal. */ @Override public boolean equals(final Object object) { if (super.equals(object)) { final FloatParameter that = (FloatParameter) object; return Double.doubleToLongBits(this.value) == Double.doubleToLongBits(that.value); } return false; }
/** Compares the specified object with this parameter group for equality. */ @Override public boolean equals(final Object object) { if (object == this) { // Slight optimization return true; } if (super.equals(object)) { final ImagingParameters that = (ImagingParameters) object; return Utilities.equals(this.parameters, that.parameters); } return false; }
/** * Compares the specified object with this parameter for equality. * * @param object The object to compare to {@code this}. * @return {@code true} if both objects are equal. */ @Override public boolean equals(final Object object) { if (object == this) { return true; } if (super.equals(object)) { final ParameterGroup that = (ParameterGroup) object; return Utilities.equals(this.values, that.values); } return false; }
/** * Compares the specified object with this parameter for equality. * * @param object The object to compare to {@code this}. * @return {@code true} if both objects are equal. */ @Override public boolean equals(final Object object) { if (object == this) { // Slight optimization return true; } if (super.equals(object)) { final Parameter that = (Parameter) object; return Utilities.equals(this.value, that.value) && Utilities.equals(this.unit, that.unit); } return false; }
/** Compares the specified object with this parameter for equality. */ @Override public boolean equals(final Object object) { if (object == this) { // Slight optimization return true; } if (super.equals(object)) { final ImagingParameter that = (ImagingParameter) object; return Utilities.equals(this.getValue(), that.getValue()); } return false; }