Package org.anchoranalysis.math.relation
Class NotEqualTo
Object
org.anchoranalysis.math.relation.NotEqualTo
- All Implemented Interfaces:
DoubleBiPredicate
public class NotEqualTo extends Object implements DoubleBiPredicate
Returns true if two values are not equal, and false otherwise.
Equality is considered within a small epsilon, as in DoubleUtilities.areEqual(double, double).
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description NotEqualTo() -
Method Summary
Modifier and Type Method Description booleantest(double valueFirst, double valueSecond)Considers the relationship betweenvalueFirstandvalueSecond.
-
Constructor Details
-
NotEqualTo
public NotEqualTo()
-
-
Method Details
-
test
public boolean test(double valueFirst, double valueSecond)Description copied from interface:DoubleBiPredicateConsiders the relationship betweenvalueFirstandvalueSecond.- Specified by:
testin interfaceDoubleBiPredicate- Parameters:
valueFirst- the first-value.valueSecond- the second-value.- Returns:
- true if the relation holds.
-