public abstract class BaseDateValue extends BaseValue
Value.Type
Constructor and Description |
---|
BaseDateValue(Date val,
DateFormat fmt) |
Modifier and Type | Method and Description |
---|---|
Object |
get() |
BigDecimal |
getAsBigDecimal() |
boolean |
getAsBoolean() |
Date |
getAsDateTime(EvalContext ctx) |
Double |
getAsDouble() |
Integer |
getAsLongInt() |
String |
getAsString() |
protected DateFormat |
getFormat() |
protected Double |
getNumber() |
isNull, roundToLongInt, toString
public BaseDateValue(Date val, DateFormat fmt)
public Object get()
protected DateFormat getFormat()
protected Double getNumber()
public boolean getAsBoolean()
getAsBoolean
in interface Value
getAsBoolean
in class BaseValue
public String getAsString()
getAsString
in interface Value
getAsString
in class BaseValue
public Date getAsDateTime(EvalContext ctx)
getAsDateTime
in interface Value
getAsDateTime
in class BaseValue
public Integer getAsLongInt()
getAsLongInt
in interface Value
getAsLongInt
in class BaseValue
public Double getAsDouble()
getAsDouble
in interface Value
getAsDouble
in class BaseValue
public BigDecimal getAsBigDecimal()
getAsBigDecimal
in interface Value
getAsBigDecimal
in class BaseValue
Copyright © 2005–2018. All rights reserved.