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
34 lines (27 loc) · 842 Bytes
/
UserMealWithExceed.java
File metadata and controls
34 lines (27 loc) · 842 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
package ru.javawebinar.topjava.model;
import java.time.LocalDateTime;
/**
* GKislin
* 11.01.2015.
*/
public class UserMealWithExceed {
protected final LocalDateTime dateTime;
protected final String description;
protected final int calories;
protected final boolean exceed;
public UserMealWithExceed(LocalDateTime dateTime, String description, int calories, boolean exceed) {
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 +
'}';
}
}