Class Date
- java.lang.Object
-
- org.opencds.cqf.cql.engine.runtime.BaseTemporal
-
- org.opencds.cqf.cql.engine.runtime.Date
-
- All Implemented Interfaces:
java.lang.Comparable<BaseTemporal>,CqlType
public class Date extends BaseTemporal
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Integercompare(BaseTemporal other, boolean forSort)intcompareTo(BaseTemporal other)java.lang.IntegercompareToPrecision(BaseTemporal other, Precision thePrecision)java.lang.Booleanequal(java.lang.Object other)java.lang.Booleanequivalent(java.lang.Object other)DateexpandPartialMax(Precision thePrecision)DateexpandPartialMinFromPrecision(Precision thePrecision)static DateTimefromJavaDate(java.util.Date date)java.time.LocalDategetDate()IntervalgetUncertaintyInterval(Precision thePrecision)booleanisUncertain(Precision thePrecision)voidsetDate(java.time.LocalDate date)java.util.DatetoJavaDate()java.util.DatetoJavaDate(Context c)java.lang.StringtoString()-
Methods inherited from class org.opencds.cqf.cql.engine.runtime.BaseTemporal
getEvaluationOffset, getHighestPrecision, getLowestPrecision, getPrecision, setEvaluationOffset, setPrecision
-
-
-
-
Constructor Detail
-
Date
public Date(int year)
-
Date
public Date(int year, int month)
-
Date
public Date(int year, int month, int day)
-
Date
public Date(java.time.LocalDate date, Precision precision)
-
Date
public Date(java.lang.String dateString)
-
Date
public Date(java.time.LocalDate date)
-
-
Method Detail
-
getDate
public java.time.LocalDate getDate()
-
setDate
public void setDate(java.time.LocalDate date)
-
compare
public java.lang.Integer compare(BaseTemporal other, boolean forSort)
- Specified by:
comparein classBaseTemporal
-
compareToPrecision
public java.lang.Integer compareToPrecision(BaseTemporal other, Precision thePrecision)
- Specified by:
compareToPrecisionin classBaseTemporal
-
isUncertain
public boolean isUncertain(Precision thePrecision)
- Specified by:
isUncertainin classBaseTemporal
-
getUncertaintyInterval
public Interval getUncertaintyInterval(Precision thePrecision)
- Specified by:
getUncertaintyIntervalin classBaseTemporal
-
compareTo
public int compareTo(BaseTemporal other)
-
equivalent
public java.lang.Boolean equivalent(java.lang.Object other)
-
equal
public java.lang.Boolean equal(java.lang.Object other)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toJavaDate
public java.util.Date toJavaDate(Context c)
-
toJavaDate
public java.util.Date toJavaDate()
-
fromJavaDate
public static DateTime fromJavaDate(java.util.Date date)
-
-