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
,FloatType
,GenericTypeBase
,GenericVectorType
,InstantType
,IntType
,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 type
withthis
as the component type.static BooleanType
Creates the boolean type.static ByteType
byteType()
Creates the byte type.static CharType
charType()
Creates the char type.clazz()
The class representingthis
type.static DoubleType
Creates the double type.static <T> Type<T>
static <T> Type<T>
static FloatType
Creates the float type.static InstantType
Creates the instant type.static IntType
intType()
Creates the int type.The list of known types.static LongType
longType()
Creates the long type.static <T> CustomType<T>
Creates a custom type.static ShortType
Creates the short type.static StringType
Creates the string type.<R> R
walk
(Type.Visitor<R> visitor)
-
Method Details
-
find
- Type Parameters:
T
- the generic type ofdataType
- Parameters:
dataType
- the data type- Returns:
- the type
-
find
IfcomponentType
is 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 types
andgeneric types
minuscustom types
andarray 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
-
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 representingthis
type.- Returns:
- the class
-
arrayType
NativeArrayType<?,T> arrayType()Create anative array type
withthis
as the component type.- Returns:
- the native array type
-
walk
-