Class LongSubject.TolerantLongComparison

  • Enclosing class:
    LongSubject

    public abstract static class LongSubject.TolerantLongComparison
    extends java.lang.Object
    A partially specified check about an approximate relationship to a long 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 java.lang.Object o)
      Deprecated.
      Object.equals(Object) is not supported on TolerantLongComparison.
      int hashCode()
      Deprecated.
      Object.hashCode() is not supported on TolerantLongComparison
      abstract void of​(long expectedLong)
      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
    • Method Detail

      • of

        public abstract void of​(long expectedLong)
        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 java.lang.Object o)
        Deprecated.
        Object.equals(Object) is not supported on TolerantLongComparison. If you meant to compare longs, use of(long) instead.
        Overrides:
        equals in class java.lang.Object
        Throws:
        java.lang.UnsupportedOperationException - always
      • hashCode

        @Deprecated
        public int hashCode()
        Deprecated.
        Object.hashCode() is not supported on TolerantLongComparison
        Overrides:
        hashCode in class java.lang.Object
        Throws:
        java.lang.UnsupportedOperationException - always