@Test public void testIsDate() { Assert.assertEquals(false, StreamClassUtil.isDateOrTimestamp(boolean.class)); Assert.assertEquals(false, StreamClassUtil.isDateOrTimestamp(Boolean.class)); Assert.assertEquals(false, StreamClassUtil.isDateOrTimestamp(int.class)); Assert.assertEquals(false, StreamClassUtil.isDateOrTimestamp(Integer.class)); Assert.assertEquals(false, StreamClassUtil.isDateOrTimestamp(long.class)); Assert.assertEquals(false, StreamClassUtil.isDateOrTimestamp(Long.class)); Assert.assertEquals(false, StreamClassUtil.isDateOrTimestamp(double.class)); Assert.assertEquals(false, StreamClassUtil.isDateOrTimestamp(Double.class)); Assert.assertEquals(false, StreamClassUtil.isDateOrTimestamp(float.class)); Assert.assertEquals(false, StreamClassUtil.isDateOrTimestamp(Float.class)); Assert.assertEquals(false, StreamClassUtil.isDateOrTimestamp(BigDecimal.class)); Assert.assertEquals(true, StreamClassUtil.isDateOrTimestamp(Date.class)); Assert.assertEquals(false, StreamClassUtil.isDateOrTimestamp(Time.class)); Assert.assertEquals(true, StreamClassUtil.isDateOrTimestamp(Timestamp.class)); }
public static boolean isDateOrTimestamp(Class< ? > type) { return ((type == Date.class) || (type == Timestamp.class)); }
StreamClassUtil { public static boolean isDateOrTimestamp(Class< ? > type) { return ((type == Date.class) || (type == Timestamp.class)); } }
StreamClassUtil { public static boolean isDateOrTimestamp(Class< ? > type) { return ((type == Date.class) || (type == Timestamp.class)); }  }
StreamClassUtil { public static boolean isDateOrTimestamp(Class< ? > type) { return ((type == Date.class) || (type == Timestamp.class)); }  static Class< ? > getWrapType(Class< ? > type); static boolean isNumberic(Class< ? > type); static Class< ? > getArithmaticType(Class< ? > leftType, Class< ? > rightType); static Class< ? > getCommonType(List<Class< ? >> childTypes); static Number getNumbericValueForType(Number result, Class< ? > resultType); static BigDecimal getBigDecimalValue(Number result); static boolean isFloatingPointNumber(Number value); static Class< ? > getCompareType(Class< ? > typeOne, Class< ? > typeTwo); static boolean isBoolean(Class< ? > type); static boolean isDateOrTimestamp(Class< ? > type); }
StreamClassUtil { public static boolean isDateOrTimestamp(Class< ? > type) { return ((type == Date.class) || (type == Timestamp.class)); }  static Class< ? > getWrapType(Class< ? > type); static boolean isNumberic(Class< ? > type); static Class< ? > getArithmaticType(Class< ? > leftType, Class< ? > rightType); static Class< ? > getCommonType(List<Class< ? >> childTypes); static Number getNumbericValueForType(Number result, Class< ? > resultType); static BigDecimal getBigDecimalValue(Number result); static boolean isFloatingPointNumber(Number value); static Class< ? > getCompareType(Class< ? > typeOne, Class< ? > typeTwo); static boolean isBoolean(Class< ? > type); static boolean isDateOrTimestamp(Class< ? > type);  }