-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Expand file tree
/
Copy pathMealTo.java
More file actions
30 lines (23 loc) · 776 Bytes
/
MealTo.java
File metadata and controls
30 lines (23 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package ru.javawebinar.topjava.model;
import java.time.LocalDateTime;
public class MealTo {
private final LocalDateTime dateTime;
private final String description;
private final int calories;
private final boolean excess;
public MealTo(LocalDateTime dateTime, String description, int calories, boolean excess) {
this.dateTime = dateTime;
this.description = description;
this.calories = calories;
this.excess = excess;
}
@Override
public String toString() {
return "UserMealWithExcess{" +
"dateTime=" + dateTime +
", description='" + description + '\'' +
", calories=" + calories +
", excess=" + excess +
'}';
}
}