public class IntegerColumn extends AbstractColumn<java.lang.Integer>
| Constructor and Description |
|---|
IntegerColumn(java.lang.String name)
Create a new integer 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.Integer> |
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 IntegerColumn(java.lang.String name)
name - the name for this numeric column,
like "Population" or "Account balance (cents)"public java.lang.String getTypeName()
ColumnSpecification"Numeric column".protected java.util.Optional<java.lang.Integer> parse(java.lang.String s)
AbstractColumnOptional.empty() on failure.parse in class AbstractColumn<java.lang.Integer>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