Class DtoDeviceAvailability

java.lang.Object
com.vernaio.kayros.engine.v2.api.dto.DtoDeviceAvailability
All Implemented Interfaces:
IDtoDeviceAvailability

public class DtoDeviceAvailability extends Object implements 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 Details

    • DtoDeviceAvailability

      public DtoDeviceAvailability()
  • Method Details

    • getStart

      public Long getStart()
      Start of the availability (start smaller than end). Default is Timestamp::MIN
      Specified by:
      getStart in interface IDtoDeviceAvailability
    • setStart

      public void setStart(Long start)
      Start of the availability (start smaller than end). Default is Timestamp::MIN
      Specified by:
      setStart in interface IDtoDeviceAvailability
    • getEnd

      public Long getEnd()
      End of the availability (start smaller than end). Default is Timestamp::MAX
      Specified by:
      getEnd in interface IDtoDeviceAvailability
    • setEnd

      public void setEnd(Long end)
      End of the availability (start smaller than end). Default is Timestamp::MAX
      Specified by:
      setEnd in interface IDtoDeviceAvailability
    • withStart

      public DtoDeviceAvailability withStart(Long start)
      Start of the availability (start smaller than end). Default is Timestamp::MIN
    • withEnd

      public DtoDeviceAvailability withEnd(Long end)
      End of the availability (start smaller than end). Default is Timestamp::MAX
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object