Advertisement

Operators

  • Ralph Lecessi
Chapter

Abstract

When a Function object’s input type is the same as its output type, an Operator interface can be used in place of a Function. Operator interfaces define a single type parameter. UnaryOperator is a functional interface with one type parameter T that inherits Function<T, T>. BinaryOperator is a functional interface with one type parameter T that inherits BiFunction<T, T, T>.

Copyright information

© Ralph Lecessi 2019

Authors and Affiliations

  • Ralph Lecessi
    • 1
  1. 1.Kendall ParkUSA

Personalised recommendations