Class Downcast<A extends B,​B>

    • Field Detail

      • INSTANCE

        private static final Downcast<?,​?> INSTANCE
    • Constructor Detail

      • Downcast

        private Downcast()
    • Method Detail

      • checkedApply

        public A checkedApply​(B b)
        Description copied from interface: Fn1
        Invoke this function with the given argument, potentially throwing any Throwable.
        Specified by:
        checkedApply in interface Fn1<A extends B,​B>
        Parameters:
        b - the argument
        Returns:
        the result of the function application
      • downcast

        public static <A extends B,​B> Downcast<A,​B> downcast()
      • downcast

        public static <A extends B,​B> A downcast​(B b)