T1
- The domain of the functionT2
- The range of the functionpublic interface Function<T1,T2>
Implementation note: A function by itself is not serializable.
We do however also provide an interface
SerializableFunction
for
the common case of a function that should be Serializable.