February 2014
Beginner
1248 pages
62h 25m
English
Section 10.10 introduced Java SE 8’s new interface features—default methods and static methods—and discussed the concept of a functional interface—an interface that contains exactly one abstract method (and may also contain default and static methods). Such interfaces are also known as single abstract method (SAM) interfaces. Functional interfaces are used extensively in functional programming, because they act as an object-oriented model for a function.
Package java.util.function contains several functional interfaces. Figure 17.2 shows the six basic generic functional interfaces. Throughout the table, T and R are generic type names that represent the type of ...
Read now
Unlock full access