Class Matchers.IsWithin<T extends Number>

java.lang.Object
org.hamcrest.BaseMatcher<T>
org.apache.calcite.test.Matchers.IsWithin<T>
Type Parameters:
T - Value type
All Implemented Interfaces:
org.hamcrest.Matcher<T>, org.hamcrest.SelfDescribing
Enclosing class:
Matchers

public static class Matchers.IsWithin<T extends Number> extends org.hamcrest.BaseMatcher<T>
Matcher that tests whether the numeric value is within a given difference another value.
  • Constructor Summary

    Constructors
    Constructor
    Description
    IsWithin(T expectedValue, double epsilon)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    describeTo(org.hamcrest.Description description)
     
    boolean
    matches(Object actualValue)
     

    Methods inherited from class org.hamcrest.BaseMatcher

    _dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch, isNotNull, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • IsWithin

      public IsWithin(T expectedValue, double epsilon)
  • Method Details

    • matches

      public boolean matches(Object actualValue)
    • describeTo

      public void describeTo(org.hamcrest.Description description)