public static boolean isPrimitive(Class<?> type) {
		if (type.isPrimitive()) {
			return true;
		}
		// check if wrapper;
		if (PRIMITIVES_TO_WRAPPERS.values().contains(type)) {
			return true;
		}
		return false;
	}
public static boolean isPrimitive ( Class < ? > type ) { if ( type . isPrimitive ( ) ) { return true ; } if ( PRIMITIVES_TO_WRAPPERS . values ( ) . contains ( type ) ) { return true ; } return false ; }
Checks if is primitive.

@param type the type
@return true, if is primitive