Class LongSubject.TolerantLongComparison
java.lang.Object
com.google.common.truth.LongSubject.TolerantLongComparison
- Enclosing class:
LongSubject
A partially specified check about an approximate relationship to a
long
value using a
tolerance.- Since:
- 1.2
- Author:
- David Saff, Christian Gruber (cgruber@israfil.net), Kurt Alfred Kluever
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.int
hashCode()
Deprecated.Object.hashCode()
is not supported on TolerantLongComparisonvoid
of
(long 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(long 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 TolerantLongComparison. If you meant to compare longs, useof(long)
instead.- Overrides:
equals
in classObject
- Throws:
UnsupportedOperationException
- always
-
hashCode
Deprecated.Object.hashCode()
is not supported on TolerantLongComparison- Overrides:
hashCode
in classObject
- Throws:
UnsupportedOperationException
- always
-
Object.equals(Object)
is not supported on TolerantLongComparison.