Abstract
Function is a functional interface with two type parameters T and R. Its functional method, called apply, takes an argument of type T and returns an object of type R. Functions are ideal for converting an object of type T to one of type R. The Function interface has default methods that return new functions, supporting chains of functions that can perform many conversion in series.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2019 Ralph Lecessi
About this chapter
Cite this chapter
Lecessi, R. (2019). Functions. In: Functional Interfaces in Java. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-4278-0_4
Download citation
DOI: https://doi.org/10.1007/978-1-4842-4278-0_4
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-4277-3
Online ISBN: 978-1-4842-4278-0
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)