Class ColumnLocalDates

java.lang.Object
app.babylon.table.transform.ColumnLocalDates

public final class ColumnLocalDates extends Object
Local-date helpers for string and typed date columns.
  • Method Details

    • stringToDate

      public static LocalDate stringToDate(CharSequence x)
      Parses a date using the default YMD interpretation.
      Parameters:
      x - source text
      Returns:
      parsed date or null
    • stringToDate

      public static LocalDate stringToDate(CharSequence x, DateFormat format)
      Parses a date using the supplied format.
      Parameters:
      x - source text
      format - date format to use
      Returns:
      parsed date or null
    • isAllDates

      public static boolean isAllDates(ColumnObject<String> c)
      Returns whether every set value in the string column looks like a date.
      Parameters:
      c - string column to inspect
      Returns:
      true when the column has a known inferred date format
    • isLocalDate

      public static boolean isLocalDate(Column column)
      Returns whether the column is already local-date typed or can be inferred as local-date text.
      Parameters:
      column - column to inspect
      Returns:
      true when the column represents local dates
    • getMinimum

      public static LocalDate getMinimum(ColumnObject<LocalDate> column)
      Returns the minimum set value in a local-date column.
      Parameters:
      column - local-date column
      Returns:
      minimum set date