com.vaadin.flow.function.

Interface SerializableFunction<T,R>

Type Parameters:

T - the type of the input to the function

R - the type of the result of the function

All Superinterfaces:

Function<T,R>, Serializable

All Known Subinterfaces:

CheckboxGroup.ItemHelperGenerator<T>, ErrorMessageProvider, IdentifierProvider<T>, ItemLabelGenerator<T>, PushConnectionFactory, SortOrderProvider, UserIdentitySupplier, ValueProvider<SOURCE,TARGET>

All Known Implementing Classes:

WebComponentExporterTagExtractor

Functional Interface:

This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface SerializableFunction<T,R> extends Function<T,R>, Serializable

A Function that is also Serializable.

Since:

1.0

Author:

Vaadin Ltd

  • Method Details

    • identity

      static <T> SerializableFunction<T,T> identity()

      Returns a function that always returns its input argument.

      Type Parameters:

      T - the type of the input and output objects to the function

      Returns:

      a function that always returns its input argument