Package org.apache.pekko.japi.function
Interface Function<T,R>
-
- All Superinterfaces:
java.io.Serializable
- All Known Subinterfaces:
StatefulMapConcatAccumulator<In,Out>
public interface Function<T,R> extends java.io.SerializableA Function interface. Used to create first-class-functions is Java.Serializableis needed to be able to grab line number for Java 8 lambdas. Supports throwingExceptionin the apply, which thejava.util.function.Functioncounterpart does not.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Rapply(T param)
-