public class StringColumn extends AbstractColumn<java.lang.String>
| Constructor and Description |
|---|
StringColumn(java.lang.String name)
Create a new string column with the given name.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getTypeName()
Get a human-readable name of this type of column specification.
|
protected java.util.Optional<java.lang.String> |
parse(java.lang.String s)
Attempt to parse the given string
into the format expected by this kind of column,
returning
Optional.empty() on failure. |
extract, extractAll, extractAllFrom, getName, isValidpublic StringColumn(java.lang.String name)
name - the name for this string column,
like "City" or "Favorite programming language"public java.lang.String getTypeName()
ColumnSpecification"Numeric column".protected java.util.Optional<java.lang.String> parse(java.lang.String s)
AbstractColumnOptional.empty() on failure.parse in class AbstractColumn<java.lang.String>s - a string representing an entry in a column,
which may or may not be validOptional.empty() if the given string is not valid;
this must not be null