Interface CellValue

All Superinterfaces:
Comparable<CellValue>

public interface CellValue extends Comparable<CellValue>
Standard SDK column value type.
Since:
2.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    compareTo(CellValue other, boolean ignoreCase)
    The method compares the CellValue object that invoked the method to the argument.
    Returns the cell value data type.
    Returns cell value type.
    boolean
    Determines if the cell value data type is alphanumeric.
    boolean
    Determines if the cell value type is a boolean.
    boolean
    Determines if the cell value data type is a date.
    boolean
    Determines if the cell value data type is a decimal.
    boolean
    Determines if the cell value is empty.
    boolean
    Determines if the cell value type is an error.
    boolean
    Determines if the cell value is false.
    boolean
    Determines if the cell value is an integer.
    boolean
    Determines if the cell value type is a list.
    boolean
    Determines if cell value is a null.
    boolean
    Determines if the cell value is a number.
    boolean
    Determines if the cell value is true.
    boolean
    Determines if the cell value type is a warning.
    Returns the BigDecimal object representation of cell value.
    double
    Returns the double value of cell value.
    int
    Returns the integer value of cell value.
    Returns the LocalDate object representation of cell value.
    Returns the LocalDateTime object representation of cell value.
    long
    Returns the long value of cell value.
    <T> T
    Converts cell value to an object of type T.
    Returns the UTC OffsetDateTime object representation of cell value.

    Methods inherited from interface java.lang.Comparable

    compareTo
  • Method Details

    • getType

      CellValueType getType()
      Returns cell value type.
      Returns:
      CellValueType
    • getDataType

      CellValueDataType getDataType()
      Returns the cell value data type.
      Returns:
      CellValueType
    • isNull

      boolean isNull()
      Determines if cell value is a null.
      Returns:
      true if the cell value is a null, otherwise false
    • isNumeric

      boolean isNumeric()
      Determines if the cell value is a number.
      Returns:
      true if the cell value is a number, otherwise false
    • isInteger

      boolean isInteger()
      Determines if the cell value is an integer.
      Returns:
      true if the cell value is an integer, otherwise false
    • isDecimal

      boolean isDecimal()
      Determines if the cell value data type is a decimal.
      Returns:
      true if the cell value data type is a decimal, otherwise false
    • isAlphanumeric

      boolean isAlphanumeric()
      Determines if the cell value data type is alphanumeric.
      Returns:
      true if the cell value data type is alphanumeric, otherwise false
    • isDate

      boolean isDate()
      Determines if the cell value data type is a date.
      Returns:
      true if the cell value data type is a date, otherwise false
    • isList

      boolean isList()
      Determines if the cell value type is a list.
      Returns:
      true if the cell value type is a list, otherwise false
    • isEmpty

      boolean isEmpty()
      Determines if the cell value is empty.
      Returns:
      true if the cell value is empty, otherwise false
    • isTrue

      boolean isTrue()
      Determines if the cell value is true.
      Returns:
      true if the cell value is true, otherwise false
    • isFalse

      boolean isFalse()
      Determines if the cell value is false.
      Returns:
      true if the cell value is false, otherwise false
    • isBoolean

      boolean isBoolean()
      Determines if the cell value type is a boolean.
      Returns:
      true if the cell value type is a boolean, otherwise false
    • isError

      boolean isError()
      Determines if the cell value type is an error.
      Returns:
      true if the cell value type is an error, otherwise false
    • isWarning

      boolean isWarning()
      Determines if the cell value type is a warning.
      Returns:
      true if the cell value type is a warning, otherwise false
    • toObject

      <T> T toObject()
      Converts cell value to an object of type T.
      Type Parameters:
      T - Type of return object
      Returns:
      Object of type T
    • toBigDecimal

      Optional<BigDecimal> toBigDecimal()
      Returns the BigDecimal object representation of cell value.
      Returns:
      BigDecimal object representation of cell value
    • toLocalDate

      Optional<LocalDate> toLocalDate()
      Returns the LocalDate object representation of cell value.
      Returns:
      LocalDate object representation of cell value
    • toLocalDateTime

      Optional<LocalDateTime> toLocalDateTime()
      Returns the LocalDateTime object representation of cell value.
      Returns:
      LocalDateTime object representation of cell value
    • toUtcDateTime

      Optional<OffsetDateTime> toUtcDateTime()
      Returns the UTC OffsetDateTime object representation of cell value.
      Returns:
      OffsetDateTime object representation of cell value
    • toLong

      long toLong()
      Returns the long value of cell value.
      Returns:
      Long value of cell value
    • toInt

      int toInt()
      Returns the integer value of cell value.
      Returns:
      Integer value of cell value
    • toDouble

      double toDouble()
      Returns the double value of cell value.
      Returns:
      Double value of cell value
    • compareTo

      int compareTo(CellValue other, boolean ignoreCase)
      The method compares the CellValue object that invoked the method to the argument.
      Parameters:
      other - Cell value to be compared with
      ignoreCase - Configures if comparison should ignore case or otherwise
      Returns:
      Integer value of 0 if equal, -1 if less than, 1 if greater than