Class Column<T>

    • Constructor Detail

      • Column

        public Column​(String id,
                      String description,
                      Class<T> valueType,
                      String unit)
        Make a new column for a table with an id, description, type, and unit.
        Parameters:
        id - String; id of the column
        description - String; description of the column
        valueType - Class<T>; value type of the column
        unit - String; unit, may be null
      • Column

        public Column​(String id,
                      String description,
                      Class<T> valueType)
        Make a new column for a table with an id, description, type. The unit is blank (null).
        Parameters:
        id - String; id of the column
        description - String; description of the column
        valueType - Class<T>; value type of the column
    • Method Detail

      • getDescription

        public String getDescription()
        Returns the column description.
        Returns:
        String; column description
      • getValueType

        public Class<T> getValueType()
        Returns the type of the values in the column.
        Returns:
        Class<?>; type of the values in the column
      • getUnit

        public String getUnit()
        Returns the unit of the column. Data is written an read using this unit.
        Returns:
        String; unit of the column
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object