posted 11 months ago
I've noted this on our private list of things that could be clearer. Technically it isn't wrong as there is a single abstract method in a functional interface that has those properties.
[OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Marc-André Parent
Greenhorn
Posts: 10
1
posted 11 months ago
Granted that there is a single method on the functional interfaces, but the context is talking about functional interfaces and not their methods.
"The most common functional interfaces are Supplier, Consumer, Function and Predicate. There are also binary versions and primitive versions of many of these..."
Am I right by saying that by "binary versions" you mean BiConsumer, BiFunction, BiPredicate?
And for "primitive versions" you mean functional interfaces such as: IntSupplier, IntConsumer, LongSupplier, LongConsumer?
"The most common functional interfaces are Supplier, Consumer, Function and Predicate. There are also binary versions and primitive versions of many of these..."
Am I right by saying that by "binary versions" you mean BiConsumer, BiFunction, BiPredicate?
And for "primitive versions" you mean functional interfaces such as: IntSupplier, IntConsumer, LongSupplier, LongConsumer?
posted 11 months ago
Yes, that is correct.
[OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
