forked from VolodymyrPortianko/topjava03
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUserMealWithExceed.java
More file actions
37 lines (29 loc) · 906 Bytes
/
UserMealWithExceed.java
File metadata and controls
37 lines (29 loc) · 906 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
31
32
33
34
35
36
37
package ru.javawebinar.topjava.to;
import java.time.LocalDateTime;
/**
* GKislin
* 11.01.2015.
*/
public class UserMealWithExceed {
protected final Integer id;
protected final LocalDateTime dateTime;
protected final String description;
protected final int calories;
protected final boolean exceed;
public UserMealWithExceed(Integer id, LocalDateTime dateTime, String description, int calories, boolean exceed) {
this.id = id;
this.dateTime = dateTime;
this.description = description;
this.calories = calories;
this.exceed = exceed;
}
@Override
public String toString() {
return "UserMealWithExceed{" +
"dateTime=" + dateTime +
", description='" + description + '\'' +
", calories=" + calories +
", exceed=" + exceed +
'}';
}
}