Lines Matching refs:cast
512 * {@code Object} argument is non-null and can be cast to the
2421 * @param obj the object to be cast
2430 public T cast(Object obj) {
2437 return "Cannot cast " + obj.getClass().getName() + " to " + getName();
2442 * represented by the specified class object. Checks that the cast
2448 * {@code Class} objects that it is willing to accept. A cast would
2449 * generate a compile-time warning, as the correctness of the cast
2453 * @param <U> the type to cast this class object to
2454 * @param clazz the class of the type to cast this class object to
2455 * @return this {@code Class} object, cast to represent a subclass of
2468 " cannot be cast to " + clazz.getName());