refactoring : lazy element - collapse hierarchy

This commit is contained in:
haerong22
2022-04-04 23:46:37 +09:00
parent ceba83fab1
commit b844d40585
4 changed files with 44 additions and 1 deletions

View File

@@ -1,6 +1,5 @@
package com.example.refactoring._13_loops._33_replace_loop_with_pipeline; package com.example.refactoring._13_loops._33_replace_loop_with_pipeline;
import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Objects; import java.util.Objects;

View File

@@ -0,0 +1,19 @@
package com.example.refactoring._14_lazy_element._34_collapse_hierarchy;
import java.time.LocalDateTime;
import java.util.List;
public class Reservation {
private LocalDateTime startDateTime;
private LocalDateTime endDateTime;
private List<String> members;
private String owner;
private boolean paid;
private String courtNumber;
}

View File

@@ -0,0 +1,7 @@
package com.example.refactoring._14_lazy_element._34_collapse_hierarchy._before;
public class CourtReservation extends Reservation {
private String courtNumber;
}

View File

@@ -0,0 +1,18 @@
package com.example.refactoring._14_lazy_element._34_collapse_hierarchy._before;
import java.time.LocalDateTime;
import java.util.List;
public class Reservation {
private LocalDateTime startDateTime;
private LocalDateTime endDateTime;
private List<String> members;
private String owner;
private boolean paid;
}