public class NumericColumn extends AbstractColumn<java.lang.Double>
Constructor and Description |
---|
NumericColumn(java.lang.String name)
Create a new numeric 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.Double> |
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, isValid
public NumericColumn(java.lang.String name)
name
- the name for this numeric column,
like "Rainfall"
or "Elevation"
public java.lang.String getTypeName()
ColumnSpecification
"Numeric column"
.protected java.util.Optional<java.lang.Double> parse(java.lang.String s)
AbstractColumn
Optional.empty()
on failure.parse
in class AbstractColumn<java.lang.Double>
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