code: public static boolean isDoubleType(Class<?> type) {
          return (type.isPrimitive() && type == float.class) || (type.isPrimitive() && type == double.class)
                  || (!type.isPrimitive() && type == Float.class) || (!type.isPrimitive() && type == Double.class);
      }
docs: Is double type boolean.
  
  @param type the type
  @return the boolean