Package tech.tablesaw.columns
Class AbstractColumnType
- java.lang.Object
-
- tech.tablesaw.columns.AbstractColumnType
-
- All Implemented Interfaces:
ColumnType
- Direct Known Subclasses:
BooleanColumnType,DateColumnType,DateTimeColumnType,DoubleColumnType,FloatColumnType,InstantColumnType,IntColumnType,LongColumnType,ShortColumnType,SkipColumnType,StringColumnType,TimeColumnType
public abstract class AbstractColumnType extends Object implements ColumnType
Defines the type of data held by aColumn
-
-
Field Summary
-
Fields inherited from interface tech.tablesaw.api.ColumnType
BOOLEAN, DOUBLE, FLOAT, INSTANT, INTEGER, LOCAL_DATE, LOCAL_DATE_TIME, LOCAL_TIME, LONG, SHORT, SKIP, STRING, values
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractColumnType(int byteSize, String name, String printerFriendlyName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intbyteSize()Returns the size in bytes of a single element held in columns of this typebooleanequals(Object o)StringgetPrinterFriendlyName()Returns a printer-friendly version of this ColumnType's nameinthashCode()Stringname()Returns the name of this ColumnTypeStringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface tech.tablesaw.api.ColumnType
compare, create, customParser
-
-
-
-
Method Detail
-
name
public String name()
Returns the name of this ColumnType- Specified by:
namein interfaceColumnType
-
byteSize
public int byteSize()
Returns the size in bytes of a single element held in columns of this type- Specified by:
byteSizein interfaceColumnType
-
getPrinterFriendlyName
public String getPrinterFriendlyName()
Returns a printer-friendly version of this ColumnType's name- Specified by:
getPrinterFriendlyNamein interfaceColumnType
-
-