Class UncheckedFunc<X,​Y>

  • Type Parameters:
    X - Type of input
    Y - Type of output
    All Implemented Interfaces:
    Func<X,​Y>

    public final class UncheckedFunc<X,​Y>
    extends Object
    implements Func<X,​Y>
    Func that doesn't throw checked Exception.

    There is no thread-safety guarantee.

    Since:
    0.2
    • Constructor Detail

      • UncheckedFunc

        public UncheckedFunc​(Func<X,​Y> fnc)
        Ctor.
        Parameters:
        fnc - Encapsulated func
    • Method Detail

      • apply

        public Y apply​(X input)
        Description copied from interface: Func
        Apply it.
        Specified by:
        apply in interface Func<X,​Y>
        Parameters:
        input - The argument
        Returns:
        The result