Class FloatSubject.TolerantFloatComparison

java.lang.Object
com.google.common.truth.FloatSubject.TolerantFloatComparison
Enclosing class:
FloatSubject

public abstract static class FloatSubject.TolerantFloatComparison extends Object
A partially specified check about an approximate relationship to a float 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 TolerantFloatComparison.
    int
    Deprecated.
    Object.hashCode() is not supported on TolerantFloatComparison
    abstract void
    of(float expectedFloat)
    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

    • TolerantFloatComparison

      private TolerantFloatComparison()
  • Method Details