Package org.openl.rules.helpers
Class DateRange
- java.lang.Object
-
- org.openl.rules.range.Range<Date>
-
- org.openl.rules.helpers.DateRange
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openl.rules.range.Range
Range.Bound, Range.Type
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DateRangeautocast(long x, DateRange y)static DateRangeautocast(Calendar x, DateRange y)static DateRangeautocast(Date x, DateRange y)protected intcompare(Date left, Date right)booleancontains(Date value)WARNING: Due limitation of OpenL which cannot work correctly with class level generics, so it is declared as protected.static intdistance(long x, DateRange y)static intdistance(Calendar x, DateRange y)static intdistance(Date x, DateRange y)protected voidformat(StringBuilder sb, Date value)protected DategetLeft()LonggetLowerBound()protected DategetRight()Range.TypegetType()LonggetUpperBound()
-
-
-
Method Detail
-
getLowerBound
public Long getLowerBound()
-
getUpperBound
public Long getUpperBound()
-
contains
public boolean contains(Date value)
Description copied from class:RangeWARNING: Due limitation of OpenL which cannot work correctly with class level generics, so it is declared as protected. It needs to define public method in children classes with type of generic parameter. OpenL can correctly select required method or show an error.
-
getType
public Range.Type getType()
-
format
protected void format(StringBuilder sb, Date value)
-
distance
public static int distance(long x, DateRange y)
-
-