Package io.deephaven.qst.type
Interface Type<T>
- Type Parameters:
T- the type
- All Known Subinterfaces:
ArrayType<T,,ComponentType> BoxedType<T>,GenericType<T>,PrimitiveType<T>
- All Known Implementing Classes:
ArrayTypeBase,BooleanType,BoxedBooleanType,BoxedByteType,BoxedCharType,BoxedDoubleType,BoxedFloatType,BoxedIntType,BoxedLongType,BoxedShortType,BoxedTypeBase,ByteType,CharType,ColumnTypeBase,CustomType,DoubleType,DurationType,FloatType,GenericTypeBase,GenericVectorType,InstantType,IntType,LocalDateType,LocalTimeType,LongType,NativeArrayType,PrimitiveTypeBase,PrimitiveVectorType,ShortType,StringType
public interface Type<T>
A type.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionNativeArrayType<?, T> Create anative array typewiththisas the component type.static BooleanTypeCreates the boolean type.static ByteTypebyteType()Creates the byte type.static CharTypecharType()Creates the char type.clazz()The class representingthistype.static DoubleTypeCreates the double type.static DurationTypeCreates the duration type.static <T> Type<T> static <T> Type<T> static FloatTypeCreates the float type.static InstantTypeCreates the instant type.static IntTypeintType()Creates the int type.The list of known types.static LocalDateTypeCreates the local date type.static LocalTimeTypeCreates the local time type.static LongTypelongType()Creates the long type.static <T> CustomType<T> Creates a custom type.static ShortTypeCreates the short type.static StringTypeCreates the string type.<R> Rwalk(Type.Visitor<R> visitor)
-
Method Details
-
find
- Type Parameters:
T- the generic type ofdataType- Parameters:
dataType- the data type- Returns:
- the type
-
find
IfcomponentTypeis notnull, this will find the appropriateArrayType. Otherwise, this is equivalent tofind(Class).- Type Parameters:
T- the generic type ofdataType- Parameters:
dataType- the data typecomponentType- the component type- Returns:
- the type
-
knownTypes
The list of known types. Includes the universe ofprimitive typesandgeneric typesminuscustom typesandarray types.- Returns:
- the list of known types
-
booleanType
Creates the boolean type.- Returns:
- the boolean type
-
byteType
Creates the byte type.- Returns:
- the byte type
-
charType
Creates the char type.- Returns:
- the char type
-
shortType
Creates the short type.- Returns:
- the short type
-
intType
Creates the int type.- Returns:
- the int type
-
longType
Creates the long type.- Returns:
- the long type
-
floatType
Creates the float type.- Returns:
- the float type
-
doubleType
Creates the double type.- Returns:
- the double type
-
stringType
Creates the string type.- Returns:
- the string type
-
instantType
Creates the instant type.- Returns:
- the instant type
-
localTimeType
Creates the local time type.- Returns:
- the local time type
-
localDateType
Creates the local date type.- Returns:
- the local date type
-
durationType
Creates the duration type.- Returns:
- the duration type
-
ofCustom
Creates a custom type. Equivalent toCustomType.of(clazz).- Type Parameters:
T- the type- Parameters:
clazz- the class- Returns:
- the custom type
-
clazz
The class representingthistype.- Returns:
- the class
-
arrayType
NativeArrayType<?,T> arrayType()Create anative array typewiththisas the component type.- Returns:
- the native array type
-
walk
-