Package com.google.common.truth
Class FloatSubject.TolerantFloatComparison
java.lang.Object
com.google.common.truth.FloatSubject.TolerantFloatComparison
- Enclosing class:
FloatSubject
A partially specified check about an approximate relationship to a
float subject using
a tolerance.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.inthashCode()Deprecated.Object.hashCode()is not supported on TolerantFloatComparisonabstract voidof(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.
-
Constructor Details
-
TolerantFloatComparison
private TolerantFloatComparison()
-
-
Method Details
-
of
public 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. The subject and tolerance are specified earlier in the fluent call chain. -
equals
Deprecated.Object.equals(Object)is not supported on TolerantFloatComparison. If you meant to compare floats, useof(float)instead.- Overrides:
equalsin classObject- Throws:
UnsupportedOperationException- always
-
hashCode
Deprecated.Object.hashCode()is not supported on TolerantFloatComparison- Overrides:
hashCodein classObject- Throws:
UnsupportedOperationException- always
-
Object.equals(Object)is not supported on TolerantFloatComparison.