/** * Verifies that the actual value is less than the given one. * <p> * Example: * <pre><code class='java'> // assertion will pass * assertThat((byte) 1).isLessThan((byte) 2); * * // assertion will fail * assertThat((byte) 1).isLessThan((byte) 0); * assertThat((byte) 1).isLessThan((byte) 1);</code></pre> * * @param other the given value to compare the actual value to. * @return {@code this} assertion object. * @throws AssertionError if the actual value is {@code null}. * @throws AssertionError if the actual value is equal to or greater than the given one. */ public SELF isLessThan(byte other) { bytes.assertLessThan(info, actual, other); return myself; }
/** * Verifies that the actual value is less than the given one. * <p> * Example: * <pre><code class='java'> // assertion will pass * assertThat((byte) 1).isLessThan((byte) 2); * * // assertion will fail * assertThat((byte) 1).isLessThan((byte) 0); * assertThat((byte) 1).isLessThan((byte) 1);</code></pre> * * @param other the given value to compare the actual value to. * @return {@code this} assertion object. * @throws AssertionError if the actual value is {@code null}. * @throws AssertionError if the actual value is equal to or greater than the given one. */ public SELF isLessThan(byte other) { bytes.assertLessThan(info, actual, other); return myself; }
/** * Verifies that the actual value is less than the given one. * <p> * Example: * * <pre><code class='java'> * // assertion will pass * assertThat((byte) 1).isLessThan(2); * * // assertion will fail * assertThat((byte) 1).isLessThan(0); * assertThat((byte) 1).isLessThan(1); * </code></pre> * * </p> * * @param other the given value to compare the actual value to. * @return {@code this} assertion object. * @throws AssertionError if the actual value is {@code null}. * @throws AssertionError if the actual value is equal to or greater than the given one. */ public S isLessThan(byte other) { bytes.assertLessThan(info, actual, other); return myself; }