Package org.cactoos.scalar
Class Mapped<U>
- java.lang.Object
-
- org.cactoos.scalar.ScalarEnvelope<U>
-
- org.cactoos.scalar.Mapped<U>
-
- Type Parameters:
U
- Type of result
- All Implemented Interfaces:
Scalar<U>
public final class Mapped<U> extends ScalarEnvelope<U>
Scalar
that apply aFunc
to the result of anotherScalar
.There is no thread-safety guarantee.
This class implements
Scalar
, which throws a checkedIOException
. This may not be convenient in many cases. To make it more convenient and get rid of the checked exception you can use theUnchecked
decorator.- Since:
- 1.0.0