Package com.google.common.truth
Class DoubleSubject.TolerantDoubleComparison
java.lang.Object
com.google.common.truth.DoubleSubject.TolerantDoubleComparison
- Enclosing class:
DoubleSubject
A partially specified check about an approximate relationship to a
double subject using
a tolerance.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.inthashCode()Deprecated.Object.hashCode()is not supported on TolerantDoubleComparisonabstract voidof(double expectedDouble) 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
-
TolerantDoubleComparison
private TolerantDoubleComparison()
-
-
Method Details
-
of
public abstract void of(double expectedDouble) 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 TolerantDoubleComparison. If you meant to compare doubles, useof(double)instead.- Overrides:
equalsin classObject- Throws:
UnsupportedOperationException- always
-
hashCode
Deprecated.Object.hashCode()is not supported on TolerantDoubleComparison- Overrides:
hashCodein classObject- Throws:
UnsupportedOperationException- always
-
Object.equals(Object)is not supported on TolerantDoubleComparison.