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
FieldsModifier and TypeFieldDescriptionprivate LocalDateTimeend date of visitprivate Personperson who visitsprivate Placeplace where person isprivate LocalDateTimestart date of visit -
Constructor Summary
ConstructorsConstructorDescriptionVisit(LocalDateTime start, LocalDateTime end, Person person, Place place)Constructor -
Method Summary
Modifier and TypeMethodDescriptiongetEnd()getPlace()getStart()booleanisInTimePeriod(LocalDateTime inputTime)booleanisOverlapping(LocalDateTime start, LocalDateTime end)voidsetEnd(LocalDateTime end)voidvoidsetStart(LocalDateTime start)toString()
-
Field Details
-
start
start date of visit -
end
end date of visit -
person
person who visits -
place
place where person is
-
-
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
-