@Test public void testIsBoolean() { Assert.assertEquals(true, StreamClassUtil.isBoolean(boolean.class)); Assert.assertEquals(true, StreamClassUtil.isBoolean(Boolean.class)); Assert.assertEquals(false, StreamClassUtil.isBoolean(int.class)); Assert.assertEquals(false, StreamClassUtil.isBoolean(Integer.class)); Assert.assertEquals(false, StreamClassUtil.isBoolean(long.class)); Assert.assertEquals(false, StreamClassUtil.isBoolean(Long.class)); Assert.assertEquals(false, StreamClassUtil.isBoolean(double.class)); Assert.assertEquals(false, StreamClassUtil.isBoolean(Double.class)); Assert.assertEquals(false, StreamClassUtil.isBoolean(float.class)); Assert.assertEquals(false, StreamClassUtil.isBoolean(Float.class)); Assert.assertEquals(false, StreamClassUtil.isBoolean(BigDecimal.class)); Assert.assertEquals(false, StreamClassUtil.isBoolean(Date.class)); Assert.assertEquals(false, StreamClassUtil.isBoolean(Time.class)); Assert.assertEquals(false, StreamClassUtil.isBoolean(Timestamp.class)); }
public static boolean isBoolean(Class< ? > type) { if ((type == Boolean.class) || (type == boolean.class)) { return true; } return false; }
StreamClassUtil { public static boolean isBoolean(Class< ? > type) { if ((type == Boolean.class) || (type == boolean.class)) { return true; } return false; } }
StreamClassUtil { public static boolean isBoolean(Class< ? > type) { if ((type == Boolean.class) || (type == boolean.class)) { return true; } return false; }  }
StreamClassUtil { public static boolean isBoolean(Class< ? > type) { if ((type == Boolean.class) || (type == boolean.class)) { return true; } return false; }  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 isBoolean(Class< ? > type) { if ((type == Boolean.class) || (type == boolean.class)) { return true; } return false; }  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);  }