Wpis z mikrobloga

@quwer: bardzo prosto: streamek, mapa, flatmapa, filterek i już pokolekcjonowane

a przedmówca jak chce może mi to polonizować ( ͡° ͜ʖ ͡°)
  • Odpowiedz
@m4tus: zdaje się, że tak będzie bardziej stream-owo:

carList.stream().map(motorList.stream()
.filter(motor -> car.getUuid().equals(motor.getUuid()))
.map(motor -> new Vehiclecar(car.getUuid(), car.getUuid(), motor.isRequried())
).collect(Collectors.toList());

@quwer: jw.
  • Odpowiedz