Class IntegerSubject.TolerantIntegerComparison
java.lang.Object
com.google.common.truth.IntegerSubject.TolerantIntegerComparison
- Enclosing class:
IntegerSubject
A partially specified check about an approximate relationship to a
int actual value
using a tolerance.- Since:
- 1.2
-
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.inthashCode()Deprecated.Object.hashCode()is not supported on TolerantIntegerComparisonvoidof(int other) Checks that the actual value is within the tolerance of the given value or not within the tolerance of the given value, depending on the choice made earlier in the fluent call chain.
-
Method Details
-
of
public void of(int other) Checks that the actual value is within the tolerance of the given value or not within the tolerance of the given value, depending on the choice made earlier in the fluent call chain. The actual value and tolerance are also specified earlier in the fluent call chain. -
equals
Deprecated.Object.equals(Object)is not supported on TolerantIntegerComparison. If you meant to compare ints, useof(int)instead.- Overrides:
equalsin classObject- Throws:
UnsupportedOperationException- always
-
hashCode
Deprecated.Object.hashCode()is not supported on TolerantIntegerComparison- Overrides:
hashCodein classObject- Throws:
UnsupportedOperationException- always
-
Object.equals(Object)is not supported on TolerantIntegerComparison.