/** * Returns true if the passed in object is the same as this filter. Checks * to make sure the filter types are the same as well as all three of the * values. * * @param oFilter the filter to test for eqaulity. * * @return True if the objects are equal. */ public boolean equals(Object oFilter) { if (oFilter.getClass() == this.getClass()) { BetweenFilterImpl bFilter = (BetweenFilterImpl) oFilter; return ((bFilter.getFilterType() == this.filterType) && bFilter.getLeftValue().equals(this.expression1) && bFilter.getMiddleValue().equals(this.middleValue) && bFilter.getRightValue().equals(this.expression2)); } else { return false; } }
/** * Returns true if the passed in object is the same as this filter. Checks * to make sure the filter types are the same as well as all three of the * values. * * @param oFilter the filter to test for eqaulity. * * @return True if the objects are equal. */ public boolean equals(Object oFilter) { if (oFilter.getClass() == this.getClass()) { BetweenFilterImpl bFilter = (BetweenFilterImpl) oFilter; return ((bFilter.getFilterType() == this.filterType) && bFilter.getLeftValue().equals(this.expression1) && bFilter.getMiddleValue().equals(this.middleValue) && bFilter.getRightValue().equals(this.expression2)); } else { return false; } }