Interface Person.Mapper<R>

Type Parameters:
R - the type of the result of the function
All Superinterfaces:
Function<Person,R>
Enclosing class:
Person
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 static interface Person.Mapper<R> extends Function<Person,R>
Represents a function that accepts one Person argument and produces a result.

This is a functional interface whose functional method is apply(Person).

  • Method Summary

    Modifier and Type
    Method
    Description
    Applies this function to the supplied Person argument.

    Methods inherited from interface java.util.function.Function

    andThen, compose
  • Method Details

    • apply

      R apply(Person p)
      Applies this function to the supplied Person argument.
      Specified by:
      apply in interface Function<Person,R>
      Parameters:
      p - the person
      Returns:
      the function result