Package com.google.common.truth
Class IntegerSubject.TolerantIntegerComparison
- java.lang.Object
-
- com.google.common.truth.IntegerSubject.TolerantIntegerComparison
-
- Enclosing class:
- IntegerSubject
public abstract static class IntegerSubject.TolerantIntegerComparison extends Object
A partially specified check about an approximate relationship to aint
subject using a tolerance.- Since:
- 1.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(@Nullable Object o)
Deprecated.Object.equals(Object)
is not supported on TolerantIntegerComparison.int
hashCode()
Deprecated.Object.hashCode()
is not supported on TolerantIntegerComparisonabstract void
of(int expectedInteger)
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.
-
-
-
Method Detail
-
of
public abstract void of(int expectedInteger)
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 public boolean equals(@Nullable Object o)
Deprecated.Object.equals(Object)
is not supported on TolerantIntegerComparison. If you meant to compare ints, useof(int)
instead.- Overrides:
equals
in classObject
- Throws:
UnsupportedOperationException
- always
-
hashCode
@Deprecated public int hashCode()
Deprecated.Object.hashCode()
is not supported on TolerantIntegerComparison- Overrides:
hashCode
in classObject
- Throws:
UnsupportedOperationException
- always
-
-