|
|
|
|
|
by Jtsummers
1434 days ago
|
|
It's also, more or less, the "fluent interface" style if laid out differently, other than the lambdas (but even those are in both C# and Java): timeslotRepo.findAll()
.stream()
.filter(timeslot->timeslot.getEndDate()==null)
.first()
.ifPresentOrElse(()->{}, ()->{new Timeslot(DateTime.now())})
https://en.wikipedia.org/wiki/Fluent_interface#Java |
|