Class DtoDeviceAvailability
java.lang.Object
com.vernaio.kayros.engine.v2.api.dto.DtoDeviceAvailability
- All Implemented Interfaces:
IDtoDeviceAvailability
A strech of time where a device may be used (if it is not reserved). Times where a device is not available behave exactly like DtoDeviceReservation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetEnd()End of the availability (start smaller than end).getStart()Start of the availability (start smaller than end).inthashCode()voidEnd of the availability (start smaller than end).voidStart of the availability (start smaller than end).End of the availability (start smaller than end).Start of the availability (start smaller than end).
-
Constructor Details
-
DtoDeviceAvailability
public DtoDeviceAvailability()
-
-
Method Details
-
getStart
Start of the availability (start smaller than end). Default is Timestamp::MIN- Specified by:
getStartin interfaceIDtoDeviceAvailability
-
setStart
Start of the availability (start smaller than end). Default is Timestamp::MIN- Specified by:
setStartin interfaceIDtoDeviceAvailability
-
getEnd
End of the availability (start smaller than end). Default is Timestamp::MAX- Specified by:
getEndin interfaceIDtoDeviceAvailability
-
setEnd
End of the availability (start smaller than end). Default is Timestamp::MAX- Specified by:
setEndin interfaceIDtoDeviceAvailability
-
withStart
Start of the availability (start smaller than end). Default is Timestamp::MIN -
withEnd
End of the availability (start smaller than end). Default is Timestamp::MAX -
equals
-
hashCode
public int hashCode()
-