/** SQL <code>FLOOR</code> operator applied to byte values. */ public static byte floor(byte b0, byte b1) { return (byte) floor((int) b0, (int) b1); }
/** SQL <code>FLOOR</code> operator applied to short values. */ public static short floor(short b0, short b1) { return (short) floor((int) b0, (int) b1); }
/** SQL <code>CEIL</code> operator applied to long values. */ public static long ceil(long b0, long b1) { return floor(b0 + b1 - 1, b1); }
/** SQL <code>FLOOR</code> operator applied to byte values. */ public static byte floor(byte b0, byte b1) { return (byte) floor((int) b0, (int) b1); }
/** SQL <code>CEIL</code> operator applied to byte values. */ public static byte ceil(byte b0, byte b1) { return floor((byte) (b0 + b1 - 1), b1); }
/** SQL <code>FLOOR</code> operator applied to byte values. */ public static byte floor(byte b0, byte b1) { return (byte) floor((int) b0, (int) b1); }
/** SQL <code>CEIL</code> operator applied to short values. */ public static short ceil(short b0, short b1) { return floor((short) (b0 + b1 - 1), b1); }
/** SQL <code>FLOOR</code> operator applied to short values. */ public static short floor(short b0, short b1) { return (short) floor((int) b0, (int) b1); }
/** SQL <code>CEIL</code> operator applied to long values. */ public static long ceil(long b0, long b1) { return floor(b0 + b1 - 1, b1); }
/** SQL <code>CEIL</code> operator applied to byte values. */ public static byte ceil(byte b0, byte b1) { return floor((byte) (b0 + b1 - 1), b1); }
/** SQL <code>CEIL</code> operator applied to short values. */ public static short ceil(short b0, short b1) { return floor((short) (b0 + b1 - 1), b1); }
/** SQL <code>FLOOR</code> operator applied to short values. */ public static short floor(short b0, short b1) { return (short) floor((int) b0, (int) b1); }
/** SQL <code>CEIL</code> operator applied to short values. */ public static short ceil(short b0, short b1) { return floor((short) (b0 + b1 - 1), b1); }
/** SQL <code>CEIL</code> operator applied to long values. */ public static long ceil(long b0, long b1) { return floor(b0 + b1 - 1, b1); }
/** SQL <code>CEIL</code> operator applied to byte values. */ public static byte ceil(byte b0, byte b1) { return floor((byte) (b0 + b1 - 1), b1); }
public static BigDecimal floor(BigDecimal b0, int b1) { return floor(b0, BigDecimal.valueOf(b1)); }
public static int floor(int b0, BigDecimal b1) { return floor(b0, b1.intValue()); }
public static int floor(int b0, BigDecimal b1) { return floor(b0, b1.intValue()); }
private void checkFloor(int x, int y, int result) { assertThat(SqlFunctions.floor(x, y), is(result)); assertThat(SqlFunctions.floor((long) x, (long) y), is((long) result)); assertThat(SqlFunctions.floor((short) x, (short) y), is((short) result)); assertThat(SqlFunctions.floor((byte) x, (byte) y), is((byte) result)); assertThat( SqlFunctions.floor(BigDecimal.valueOf(x), BigDecimal.valueOf(y)), is(BigDecimal.valueOf(result))); }
private void checkFloor(int x, int y, int result) { assertThat(SqlFunctions.floor(x, y), is(result)); assertThat(SqlFunctions.floor((long) x, (long) y), is((long) result)); assertThat(SqlFunctions.floor((short) x, (short) y), is((short) result)); assertThat(SqlFunctions.floor((byte) x, (byte) y), is((byte) result)); assertThat( SqlFunctions.floor(BigDecimal.valueOf(x), BigDecimal.valueOf(y)), is(BigDecimal.valueOf(result))); }