teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

3

setter,Getterを記載

2021/10/10 02:29

投稿

__student
__student

スコア1

title CHANGED
File without changes
body CHANGED
@@ -28,12 +28,28 @@
28
28
 
29
29
  ```
30
30
  ```Java
31
- @Data
32
31
  public class Tax {
33
32
  private LocalDate applyStartDate;
34
33
  private LocalDate applyEndDate;
35
34
  private BigDecimal taxRate;
35
+
36
+ // setter
37
+ public void setApplyStartDate(LocalDate start) {
38
+ this.applyStartDate = start;
39
+ }
40
+
41
+ public void setApplyEndDate(LocalDate end) {
42
+ this.applyEndDate = end;
43
+ }
44
+
45
+ // Getter
46
+
47
+ public LocalDate getApplyStartDate() {
48
+ return this.applyStartDate;
49
+ }
50
+
51
+ public LocalDate getApplyEndDate() {
52
+ return this.applyEndDate;
53
+ }
36
54
  }
37
- ```
55
+ ```
38
- アノテーションの記載漏れがありましたので
39
- 追加いたしました。

2

2021/10/10 02:29

投稿

__student
__student

スコア1

title CHANGED
File without changes
body CHANGED
@@ -28,9 +28,12 @@
28
28
 
29
29
  ```
30
30
  ```Java
31
+ @Data
31
32
  public class Tax {
32
33
  private LocalDate applyStartDate;
33
34
  private LocalDate applyEndDate;
34
35
  private BigDecimal taxRate;
35
36
  }
36
- ```
37
+ ```
38
+ アノテーションの記載漏れがありましたので
39
+ 追加いたしました。

1

誤字

2021/10/10 01:38

投稿

__student
__student

スコア1

title CHANGED
@@ -1,1 +1,1 @@
1
- 適用期間の開始日と終了日を含みたい
1
+ 適用期間の開始日と終了日を含みたい
body CHANGED
File without changes