Class DateTimeRange

java.lang.Object
overit.geocall.model.DynO
overit.geocall.model.date.DateTimeRange
All Implemented Interfaces:
ConstraintValidator<DynO.Valid,DynO>, Serializable, JacksonMapConvertible, overit.geocall.timezone.model.TimeZoned

public class DateTimeRange extends DynO implements JacksonMapConvertible
This object allows to specify a range between two Date.
See Also:
  • Constructor Details

    • DateTimeRange

      public DateTimeRange()
      Create a new empty range instance
    • DateTimeRange

      public DateTimeRange(Date from, Date to)
      Create a new range instance.
      Parameters:
      from - range start
      to - range end
      Throws:
      IllegalArgumentException - if both arguments are valued but from is later than to
  • Method Details