public static boolean isAssignableFrom(Class<?> to, Class<?> from) {
    """
	Just like Class.isAssignableFrom(), but does the right thing when considering autoboxing.
    """
		Class<?> notPrimitiveTo = to.isPrimitive() ? PRIMITIVE_TO_WRAPPER.get(to) : to;
		Class<?> notPrimitiveFrom = from.isPrimitive() ? PRIMITIVE_TO_WRAPPER.get(from) : from;

		return notPrimitiveTo.isAssignableFrom(notPrimitiveFrom);
	}
public static boolean isAssignableFrom(Class<?> to, Class<?> from) {
		Class<?> notPrimitiveTo = to.isPrimitive() ? PRIMITIVE_TO_WRAPPER.get(to) : to;
		Class<?> notPrimitiveFrom = from.isPrimitive() ? PRIMITIVE_TO_WRAPPER.get(from) : from;

		return notPrimitiveTo.isAssignableFrom(notPrimitiveFrom);
	}
public static boolean isAssignableFrom ( Class < ? > to , Class < ? > from ) { Class < ? > notPrimitiveTo = to . isPrimitive ( ) ? PRIMITIVE_TO_WRAPPER . get ( to ) : to ; Class < ? > notPrimitiveFrom = from . isPrimitive ( ) ? PRIMITIVE_TO_WRAPPER . get ( from ) : from ; return notPrimitiveTo . isAssignableFrom ( notPrimitiveFrom ) ; }
Just like Class.isAssignableFrom(), but does the right thing when considering autoboxing.
Just like Class . isAssignableFrom () but does the right thing when considering autoboxing .