Package de.dhbw.contactdb
Class Visit
java.lang.Object
de.dhbw.contactdb.Visit
Main class
- Since:
- 21.06.2021
- Version:
- 1.0
- Author:
- florian kaiser
-
Field Summary
Modifier and TypeFieldDescriptionprivate LocalDateTime
end date of visitprivate Person
person who visitsprivate Place
place where person isprivate LocalDateTime
start date of visit -
Constructor Summary
ConstructorDescriptionVisit(LocalDateTime start, LocalDateTime end, Person person, Place place)
Constructor -
Method Summary
Modifier and TypeMethodDescriptiongetEnd()
getPlace()
getStart()
boolean
isInTimePeriod(LocalDateTime inputTime)
boolean
isOverlapping(LocalDateTime start, LocalDateTime end)
void
setEnd(LocalDateTime end)
void
void
setStart(LocalDateTime start)
toString()
-
Field Details
-
place
place where person is -
start
start date of visit -
end
end date of visit -
person
person who visits
-
-
Constructor Details
-
Visit
Constructor- Parameters:
start
- start date of visitend
- end date of visitperson
- person who visitsplace
- place where person is
-
-
Method Details
-
getStart
- Returns:
start
-
setStart
- Parameters:
start
-start
-
getEnd
- Returns:
end
-
setEnd
- Parameters:
end
-end
-
getPerson
- Returns:
person
-
setPerson
- Parameters:
person
-person
-
getPlace
- Returns:
place
-
isOverlapping
- Parameters:
start
- Start of timespanend
- End of timespan- Returns:
- boolean if timespan between start and end is overlapping timespan between this visits start and end
-
isInTimePeriod
- Parameters:
inputTime
- time- Returns:
- boolean if time is between this visits start and end
-
toString
-