Package mondrian.olap.type
Class DateTimeType
java.lang.Object
mondrian.olap.type.ScalarType
mondrian.olap.type.DateTimeType
- All Implemented Interfaces:
Type
The type of an expression representing a date, time or timestamp.
- Since:
- Jan 2, 2008
- Author:
- jhyde
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
isInstance
(Object value) Returns whether a value is valid for a type.Methods inherited from class mondrian.olap.type.ScalarType
computeCommonType, getArity, getDimension, getHierarchy, getLevel, hashCode, toString, usesDimension, usesHierarchy
-
Constructor Details
-
DateTimeType
public DateTimeType()Creates a DateTime type.
-
-
Method Details
-
equals
- Overrides:
equals
in classScalarType
-
isInstance
Description copied from interface:Type
Returns whether a value is valid for a type.- Specified by:
isInstance
in interfaceType
- Overrides:
isInstance
in classScalarType
- Parameters:
value
- Value- Returns:
- Whether value is valid for this type
-