code: public static boolean isBoolean(final Class type) {
  		if (Boolean.class.isAssignableFrom(type)) {
  			return true;
  		}
  		return type.getName().equals("boolean");
  	}
docs: Checks if is boolean.
  
  @param type the type
  @return true, if is boolean