Interface Function<T,R>

Type Parameters:
T - Type of the first (and only) argument
R - Type of the return value.
All Superinterfaces:
Serializable
All Known Subinterfaces:
UnaryOperator<T>
All Known Implementing Classes:
BeaconStreams.BeaconFunction, CollectionStreams.FlattenCollection, CollectionStreams.FlattenMap, Identity, JSONStreams.DeserializeJSON, JSONStreams.SerializeJSON, JSONStreams.ToJSON

public interface Function<T,R> extends Serializable
A function that is passed an argument and returns a value.
If an implementation also implements java.lang.AutoCloseable then it will be automatically closed when the application terminates.
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(T v)
     
  • Method Details

    • apply

      R apply(T v)