Class Mapped<U>

  • Type Parameters:
    U - Type of result
    All Implemented Interfaces:
    Scalar<U>

    public final class Mapped<U>
    extends ScalarEnvelope<U>
    Scalar that apply a Func to the result of another Scalar.

    There is no thread-safety guarantee.

    This class implements Scalar, which throws a checked IOException. This may not be convenient in many cases. To make it more convenient and get rid of the checked exception you can use the Unchecked decorator.

    Since:
    1.0.0
    • Constructor Detail

      • Mapped

        public Mapped​(Func<? super T,​? extends U> func,
                      Scalar<? extends T> scalar)
        Ctor.
        Type Parameters:
        T - Type of input.
        Parameters:
        func - Map function.
        scalar - Scalar.