Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8001632 Umbrella: Library Lambdafication
  3. JDK-8001634

Initial set of functional interface types

XMLWordPrintable

    • b68
    • Not verified

      Java SE 8 will add a number of "functional interface" types, such as Predicate or Block, to act as conversion targets for lambda expressions and method references.

      The initial set is:
      Predicate<T> : T -> boolean
      Block<T> : T -> void
      Mapper<T, U>: T -> U
      UnaryOperator<T>: T -> T
      BinaryOperator<T>: (T,T) -> T
      BiBlock<T,U>: (T,U) -> void
      BiMapper<T,U,V>: (T,U) -> V
      BiPredicate<T,U>: (T,U> -> boolean
      Factory<T>: () -> T

      and would live in java.util.functions.

            mduigou Mike Duigou
            briangoetz Brian Goetz
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: