PMT-16: Projekt Anlegen #12
1 changed files with 6 additions and 1 deletions
|
@ -43,5 +43,10 @@ public class Project {
|
|||
private LocalDateTime plannedEnd;
|
||||
|
||||
private LocalDateTime realEnd; // Cant be named just "end" because it's and SQL Keyword
|
||||
|
||||
|
||||
public boolean isValid() {
|
||||
return plannedEnd.isAfter(start) && (realEnd == null || realEnd.isAfter(start));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue