Class DoubleSubject.TolerantDoubleComparison

java.lang.Object
com.google.common.truth.DoubleSubject.TolerantDoubleComparison
Enclosing class:
DoubleSubject

public abstract static class DoubleSubject.TolerantDoubleComparison extends Object
A partially specified check about an approximate relationship to a double subject using a tolerance.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deprecated.
    Object.equals(Object) is not supported on TolerantDoubleComparison.
    int
    Deprecated.
    Object.hashCode() is not supported on TolerantDoubleComparison
    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.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TolerantDoubleComparison

      private TolerantDoubleComparison()
  • Method Details