Interface IdentifierProvider<T>

Type Parameters:
T - the type of the item
All Superinterfaces:
Function<T,Object>, Serializable, SerializableFunction<T,Object>, ValueProvider<T,Object>
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 IdentifierProvider<T> extends ValueProvider<T,Object>
A callback interface that is used to provide the identifier of an item.
Since:
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static <T> IdentifierProvider<T>
    Returns an identifier provider that always returns its input argument.

    Methods inherited from interface java.util.function.Function

    andThen, compose

    Methods inherited from interface com.vaadin.flow.function.ValueProvider

    apply
  • Method Details

    • identity

      static <T> IdentifierProvider<T> identity()
      Returns an identifier provider 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