Package org.openl.rules.dt.type.domains
Class DateRangeDomainAdaptor
- java.lang.Object
-
- org.openl.rules.dt.type.domains.DateRangeDomainAdaptor
-
- All Implemented Interfaces:
IDomainAdaptor
public class DateRangeDomainAdaptor extends Object implements IDomainAdaptor
Adaptor for date ranges. Helps to access dates in range by index and retrieve index of date within the range.- Author:
- PUdalau
-
-
Constructor Summary
Constructors Constructor Description DateRangeDomainAdaptor(DateRangeDomain domain)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetIndex(Object value)intgetIntVarDomainType()intgetMax()intgetMin()ObjectgetValue(int index)IDomainAdaptormerge(IDomainAdaptor adaptor)StringtoString()
-
-
-
Constructor Detail
-
DateRangeDomainAdaptor
public DateRangeDomainAdaptor(DateRangeDomain domain)
-
-
Method Detail
-
getIndex
public int getIndex(Object value)
- Specified by:
getIndexin interfaceIDomainAdaptor
-
getIntVarDomainType
public int getIntVarDomainType()
- Specified by:
getIntVarDomainTypein interfaceIDomainAdaptor
-
getMax
public int getMax()
- Specified by:
getMaxin interfaceIDomainAdaptor
-
getMin
public int getMin()
- Specified by:
getMinin interfaceIDomainAdaptor
-
getValue
public Object getValue(int index)
- Specified by:
getValuein interfaceIDomainAdaptor
-
merge
public IDomainAdaptor merge(IDomainAdaptor adaptor)
- Specified by:
mergein interfaceIDomainAdaptor
-
-