Skip to content

Commit e089959

Browse files
committed
Format code
1 parent a8f00e6 commit e089959

File tree

1 file changed

+22
-3
lines changed
  • datetime-thymeleaf/src/main/java/com/example/lulunac27a/datetimethymeleaf/entity

1 file changed

+22
-3
lines changed
Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.example.lulunac27a.datetimethymeleaf.entity;
22

3-
public class DateTime {//class with date and time information with milliseconds, microseconds and nanoseconds
3+
public class DateTime {// class with date and time information with milliseconds, microseconds and
4+
// nanoseconds
45
private int year;
56
private int month;
67
private int day;
@@ -10,60 +11,78 @@ public class DateTime {//class with date and time information with milliseconds,
1011
private int millisecond;
1112
private int microsecond;
1213
private int nanosecond;
13-
//get getter and setter values for all fields
14+
15+
// get getter and setter values for all fields
1416
public int getYear() {
1517
return year;
1618
}
19+
1720
public void setYear(int year) {
1821
this.year = year;
1922
}
23+
2024
public int getMonth() {
2125
return month;
2226
}
27+
2328
public void setMonth(int month) {
2429
this.month = month;
2530
}
31+
2632
public int getDay() {
2733
return day;
2834
}
35+
2936
public void setDay(int day) {
3037
this.day = day;
3138
}
39+
3240
public int getHour() {
3341
return hour;
3442
}
43+
3544
public void setHour(int hour) {
3645
this.hour = hour;
3746
}
47+
3848
public int getMinute() {
3949
return minute;
4050
}
51+
4152
public void setMinute(int minute) {
4253
this.minute = minute;
4354
}
55+
4456
public int getSecond() {
4557
return second;
4658
}
59+
4760
public void setSecond(int second) {
4861
this.second = second;
4962
}
63+
5064
public int getMillisecond() {
5165
return millisecond;
5266
}
67+
5368
public void setMillisecond(int millisecond) {
5469
this.millisecond = millisecond;
5570
}
71+
5672
public int getMicrosecond() {
5773
return microsecond;
5874
}
75+
5976
public void setMicrosecond(int microsecond) {
6077
this.microsecond = microsecond;
6178
}
79+
6280
public int getNanosecond() {
6381
return nanosecond;
6482
}
83+
6584
public void setNanosecond(int nanosecond) {
6685
this.nanosecond = nanosecond;
6786
}
68-
87+
6988
}

0 commit comments

Comments
 (0)