Functional Interfaces and Lambda Expressions in Java with Examples | Geekific

preview_player
Показать описание

Java 8 brought a ton of new features with it. One of these features is a powerful new syntactic improvement in the form of lambda expressions. A lambda, is an anonymous function defined at the level of special interfaces. These interfaces are what we call functional interfaces. In this video, we dive in the most important functional interfaces provided by Java, and come up with multiple examples for each of them.

Timestamps:
00:00 Introduction
02:00 The Function Interface
03:29 The "andThen" default method
04:19 The "compose" default method
04:45 Specialized Function Interfaces
05:54 The BiFunction Interface
07:33 The Predicate Interface
09:53 The Supplier and Consumer Interfaces
12:36 Operators
14:40 Creating your own Functional Interface
14:57 Thanks for Watching!

If you found this video helpful, check other Geekific uploads:

#Geekific #FunctionalInterfaces #Streams #Java #CleanCode
Рекомендации по теме
Комментарии
Автор

I, as a fan subscriber, call for pt. 2 - this content is literally the most informative, and as straightforward as no other (and I've been through shitloads of such). And it's not hinglish (of whom content I do not discard). Academics level of transferring knowledge whished for such quality you provide.

HappyWiesiek
Автор

This is gold. I love how you show how functional interfaces integrate with the streams API and enable it to work. It's all starting to click now. Excellent stuff.

RobertPodosek
Автор

Thank you. I was stuck on lambda expressions for days.

saintjonny
Автор

Amazing content. Your explanation is pure magic and logical. This video explains everything I've been confused with Java Stream methods. Whenever I was using Java Stream API, those methods documentation pops up and I selected those functions and didn't understand the parameters it requires at all. Until now, I can understand! Thanks a million!

derryyeh
Автор

Better explained than my university lecturers could. Thanks.

smikkelbeer
Автор

Glad I found your channel. Awesome content

dennismasinde
Автор

this is really great content, your videos helps me deep my knowledge, thank you for that!

javadev-iz
Автор

@geekific what means the generic <V> between default and the returning type? I mean, it is not the returning type. I asked chatgpt but was never able to make it clear.

ppdmartell
Автор

Normally we can call static methot in methot reference but in here we can call without static methot in Function interface.how do you do that?
Thanks

MEGANE
Автор

I never liked these lambdas and functional interfaces... Yes the code is shorter but it's difficult to read.

Funto