Package app.babylon.table.transform
Class ColumnLocalDates
java.lang.Object
app.babylon.table.transform.ColumnLocalDates
Local-date helpers for string and typed date columns.
-
Method Summary
Modifier and TypeMethodDescriptionstatic LocalDategetMinimum(ColumnObject<LocalDate> column) Returns the minimum set value in a local-date column.static booleanReturns whether every set value in the string column looks like a date.static booleanisLocalDate(Column column) Returns whether the column is already local-date typed or can be inferred as local-date text.static LocalDateParses a date using the default YMD interpretation.static LocalDatestringToDate(CharSequence x, DateFormat format) Parses a date using the supplied format.
-
Method Details
-
stringToDate
Parses a date using the default YMD interpretation.- Parameters:
x- source text- Returns:
- parsed date or
null
-
stringToDate
Parses a date using the supplied format.- Parameters:
x- source textformat- date format to use- Returns:
- parsed date or
null
-
isAllDates
Returns whether every set value in the string column looks like a date.- Parameters:
c- string column to inspect- Returns:
truewhen the column has a known inferred date format
-
isLocalDate
Returns whether the column is already local-date typed or can be inferred as local-date text.- Parameters:
column- column to inspect- Returns:
truewhen the column represents local dates
-
getMinimum
Returns the minimum set value in a local-date column.- Parameters:
column- local-date column- Returns:
- minimum set date
-