Package org.openl.domain
Class DateRangeDomain
java.lang.Object
org.openl.domain.DateRangeDomain
Domain for range of dates.
- Author:
- PUdalau
-
Constructor Summary
ConstructorsConstructorDescriptionDateRangeDomain(Date min, Date max) Creates date range inside the specified bounds(including bounds). -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
DateRangeDomain
Creates date range inside the specified bounds(including bounds).- Parameters:
min- left bound.max- right bound.
-
-
Method Details
-
getMin
- Returns:
- The left bound of range.
-
getMax
- Returns:
- The right bound of range.
-
setMin
Sets left bound of range. -
setMax
Sets right bound of range. -
iterator
-
daysBetween
-
size
public int size() -
getElementType
- Specified by:
getElementTypein interfaceIDomain<Date>- Returns:
- type that can be used with this domain
-
selectObject
- Specified by:
selectObjectin interfaceIDomain<Date>- Parameters:
obj-- Returns:
- true if object belongs to this domain
-
getIndex
- Parameters:
value- Date to get index.- Returns:
- The index of specified date or negative number if specified date does not belong to the range.
-
getValue
- Parameters:
index- Index of the date.- Returns:
- Returns The date within the range or
nullif date with specified index does not belong to the range.
-
toString
-
equals
-
hashCode
public int hashCode()
-