Is it correct this form using Streams?
Assuming dataRef was initialized just before this statement?
Mackentojj and @Eng_Rastin
Is it correct this form using Streams?

everybody who wants to read java from A to Z complete and simply for free text me

Have you already tried
map(data -γdata.isAfter(dataRef)
Assuming dataRef was initialized just before this statement?

Have you already tried
map(data -γdata.isAfter(dataRef)
Assuming dataRef was initialized just before this statement?
dataRef was inicialized before, so I want to compare if data passed by parameter is greather than dataRef.

dataRef was inicialized before, so I want to compare if data passed by parameter is greather than dataRef.
Please, paste all the previous code of your function so we could better understand your problem. Use pastebin or gist.

Please, paste all the previous code of your function so we could better understand your problem. Use pastebin or gist.

Please, paste all the previous code of your function so we could better understand your problem. Use pastebin or gist.
There isn’t a problem, but I would like to know if this structure using Stream API is correct to compare two dates.
everybody who wants to read java from A to Z complete and simply for free text me
or replay the sms

There isn’t a problem, but I would like to know if this structure using Stream API is correct to compare two dates.
I think you should read this first, there are some function calls missing in your Stream code
https://mkyong.com/java8/java-8-streams-map-examples/
From my point of view, the usage of the mapping for optionals in this case (and also for streams) is good π
I would approve this as a pull request….if everything would be written in english (and some other considerations). But that’s another topic π

@JFCostta: I don’t think there is a function call missing. The function repository.findById(…) returns an Optional. So in the end, @Dieggo is not using streams here, but Optionals. Though the functions are very similar and have the same/similar concepts.
From my point of view, the usage of the mapping for optionals in this case (and also for streams) is good π
I would approve this as a pull request….if everything would be written in english (and some other considerations). But that’s another topic π
You’re right, I thought he was using Stream, sorry!!

@JFCostta: I don’t think there is a function call missing. The function repository.findById(…) returns an Optional. So in the end, @Dieggo is not using streams here, but Optionals. Though the functions are very similar and have the same/similar concepts.
From my point of view, the usage of the mapping for optionals in this case (and also for streams) is good π
I would approve this as a pull request….if everything would be written in english (and some other considerations). But that’s another topic π
Thanks for your feedback