public static boolean isBoolean(Class clazz){
  if ((clazz == Boolean.class) || (clazz == boolean.class)) {
    return true;
  }
  return false;
}

public static boolean isBoolean ( Class clazz ) { if ( ( clazz == Boolean . class ) || ( clazz == boolean . class ) ) { return true ; } return false ; }
determines if the class passed in is a boolean boxed or unboxed type .
