Class Cast


  • public final class Cast
    extends Object
    • Method Detail

      • verboseCast

        public static <X> X verboseCast​(Class<X> clazz,
                                        Object o)
        Does the same as Class.cast(Object), but throws a ClassCastException with a more verbose message.