I\'m trying to understand Java 8 streams. I have two classes:
public class UserMeal { protected final LocalDateTime dateTime; protected final String
What you are possibly looking for is map(). You can "convert" the objects in a stream to another by mapping this way:
map()
... .map(userMeal -> new UserMealExceed(...)) ...