public abstract static class FloatSubject.TolerantFloatComparison extends Object
float
subject using
a tolerance.Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Deprecated.
Object.equals(Object) is not supported on TolerantFloatComparison. If you
meant to compare floats, use of(float) instead. |
int |
hashCode()
Deprecated.
Object.hashCode() is not supported on TolerantFloatComparison |
abstract void |
of(float expectedFloat)
Fails if the subject was expected to be within the tolerance of the given value but was not
or if it was expected not to be within the tolerance but was.
|
public abstract void of(float expectedFloat)
@Deprecated public boolean equals(@NullableDecl Object o)
Object.equals(Object)
is not supported on TolerantFloatComparison. If you
meant to compare floats, use of(float)
instead.equals
in class Object
UnsupportedOperationException
- always@Deprecated public int hashCode()
Object.hashCode()
is not supported on TolerantFloatComparisonhashCode
in class Object
UnsupportedOperationException
- alwaysCopyright © 2018. All rights reserved.