Package deltix.qsrv.hf.pub.md
Class TimeOfDayDataType
- java.lang.Object
-
- deltix.qsrv.hf.pub.md.DataType
-
- deltix.qsrv.hf.pub.md.TimeOfDayDataType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public final class TimeOfDayDataType extends DataType
Time Of Day (in HH:MM:SS or HH:MM:SS.sss format). Mapped to Javaint
data type that specifies number of milliseconds since midnight (in undetermined timezone).- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class deltix.qsrv.hf.pub.md.DataType
DataType.ConversionType
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NAME
static int
NULL
-
Fields inherited from class deltix.qsrv.hf.pub.md.DataType
encoding, T_ARRAY_TYPE, T_BINARY_TYPE, T_BOOLEAN_TYPE, T_CHAR_TYPE, T_DATE_TIME_TYPE, T_DOUBLE_TYPE, T_ENUM_TYPE, T_FLOAT_TYPE, T_INTEGER_TYPE, T_OBJECT_TYPE, T_STRING_TYPE, T_TIME_OF_DAY_TYPE
-
-
Constructor Summary
Constructors Constructor Description TimeOfDayDataType(boolean nullable)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
assertValidImpl(java.lang.Object obj)
Checks a non-null Boxed value against constraints, if any.java.lang.String
getBaseName()
int
getCode()
static TimeOfDayDataType
getDefaultInstance()
DataType.ConversionType
isConvertible(DataType to)
static java.lang.String
staticFormat(int value)
static int
staticParse(java.lang.CharSequence text)
protected java.lang.Object
toBoxedImpl(java.lang.CharSequence text)
Parse non-null text and return an object without checking constraints.protected java.lang.String
toStringImpl(java.lang.Object obj)
Converts a non-null, constraint-compliant Boxed value to String.void
writeTo(java.io.DataOutputStream out)
-
Methods inherited from class deltix.qsrv.hf.pub.md.DataType
assertValid, clone, getEncoding, isNullable, isPrimitive, nullableInstance, outOfRange, parse, parseBoolean, parseByte, parseDate, parseDouble, parseEncoding, parseFloat, parseInt, parseLong, parseShort, readFields, readFrom, setNullable, toString, unsupportedType
-
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
NULL
public static final int NULL
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDefaultInstance
public static TimeOfDayDataType getDefaultInstance()
-
getBaseName
public java.lang.String getBaseName()
- Specified by:
getBaseName
in classDataType
-
staticParse
public static int staticParse(java.lang.CharSequence text)
-
staticFormat
public static java.lang.String staticFormat(int value)
-
assertValidImpl
protected void assertValidImpl(java.lang.Object obj)
Description copied from class:DataType
Checks a non-null Boxed value against constraints, if any. If the object is of unsupported type, this method should throwDataType.unsupportedType(java.lang.Object)
.- Specified by:
assertValidImpl
in classDataType
- Parameters:
obj
- A Boxed representation of a value.
-
toBoxedImpl
protected java.lang.Object toBoxedImpl(java.lang.CharSequence text)
Description copied from class:DataType
Parse non-null text and return an object without checking constraints.- Specified by:
toBoxedImpl
in classDataType
-
toStringImpl
protected java.lang.String toStringImpl(java.lang.Object obj)
Description copied from class:DataType
Converts a non-null, constraint-compliant Boxed value to String.- Specified by:
toStringImpl
in classDataType
- Parameters:
obj
- A non-null, valid value.- Returns:
- A String representation.
-
isConvertible
public DataType.ConversionType isConvertible(DataType to)
- Specified by:
isConvertible
in classDataType
-
-