com.silverpeas.annotation
Class DateInterval

java.lang.Object
  extended by com.silverpeas.annotation.DateInterval

@DateRange(startDate="from",
           endDate="to")
public class DateInterval
extends Object

Objects representing an interval of dates. It is aiming for tests on the DateRangeValidator validation.


Constructor Summary
DateInterval(Datable<?> startDate, Datable<?> endDate)
          Constructs a new interval from the two specified dates.
 
Method Summary
 Datable<?> getEndDate()
          Gets the end date of the interval.
 Datable<?> getStartDate()
          Gets the start date of the interval.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateInterval

public DateInterval(Datable<?> startDate,
                    Datable<?> endDate)
Constructs a new interval from the two specified dates.

Parameters:
startDate - the start date of the interval.
endDate - the end date of the interval.
Method Detail

getStartDate

public Datable<?> getStartDate()
Gets the start date of the interval.

Returns:
the interval start date.

getEndDate

public Datable<?> getEndDate()
Gets the end date of the interval.

Returns:
the interval end date.


Copyright © 2016 Silverpeas. All Rights Reserved.