/** SQL <code><gt;</code> operator applied to Object values (at least one * operand has ANY type, including String; neither may be null). */ public static boolean neAny(Object b0, Object b1) { return !eqAny(b0, b1); }
/** SQL <code><gt;</code> operator applied to Object values (at least one * operand has ANY type, including String; neither may be null). */ public static boolean neAny(Object b0, Object b1) { return !eqAny(b0, b1); }
/** SQL <code><gt;</code> operator applied to Object values (at least one * operand has ANY type, including String; neither may be null). */ public static boolean neAny(Object b0, Object b1) { return !eqAny(b0, b1); }
@Test public void testEqWithAny() { // Non-numeric same type equality check assertThat(SqlFunctions.eqAny("hello", "hello"), is(true)); // Numeric types equality check assertThat(SqlFunctions.eqAny(1, 1L), is(true)); assertThat(SqlFunctions.eqAny(1, 1.0D), is(true)); assertThat(SqlFunctions.eqAny(1L, 1.0D), is(true)); assertThat(SqlFunctions.eqAny(new BigDecimal(1L), 1), is(true)); assertThat(SqlFunctions.eqAny(new BigDecimal(1L), 1L), is(true)); assertThat(SqlFunctions.eqAny(new BigDecimal(1L), 1.0D), is(true)); assertThat(SqlFunctions.eqAny(new BigDecimal(1L), new BigDecimal(1.0D)), is(true)); // Non-numeric different type equality check assertThat(SqlFunctions.eqAny("2", 2), is(false)); }
@Test public void testEqWithAny() { // Non-numeric same type equality check assertThat(SqlFunctions.eqAny("hello", "hello"), is(true)); // Numeric types equality check assertThat(SqlFunctions.eqAny(1, 1L), is(true)); assertThat(SqlFunctions.eqAny(1, 1.0D), is(true)); assertThat(SqlFunctions.eqAny(1L, 1.0D), is(true)); assertThat(SqlFunctions.eqAny(new BigDecimal(1L), 1), is(true)); assertThat(SqlFunctions.eqAny(new BigDecimal(1L), 1L), is(true)); assertThat(SqlFunctions.eqAny(new BigDecimal(1L), 1.0D), is(true)); assertThat(SqlFunctions.eqAny(new BigDecimal(1L), new BigDecimal(1.0D)), is(true)); // Non-numeric different type equality check assertThat(SqlFunctions.eqAny("2", 2), is(false)); }