Package app.babylon.table.column
Interface Column.Type
- Enclosing interface:
Column
public static interface Column.Type
Describes the runtime value type stored by a column.
-
Method Summary
Modifier and TypeMethodDescriptionClass<?> Returns the Java class represented by this column type.id()Returns the stable identifier used for this column type.default booleanIndicates whether the represented value class is a primitive Java type.static Column.TypeResolves a column type descriptor for the supplied Java class.
-
Method Details
-
of
Resolves a column type descriptor for the supplied Java class.- Parameters:
valueClass- the Java class represented by the column type- Returns:
- a reusable column type descriptor
-
id
String id()Returns the stable identifier used for this column type.- Returns:
- the column type identifier
-
getValueClass
Class<?> getValueClass()Returns the Java class represented by this column type.- Returns:
- the runtime value class
-
isPrimitive
default boolean isPrimitive()Indicates whether the represented value class is a primitive Java type.- Returns:
truewhen the underlying value class is primitive
-