public class NumericField extends Field
Field.Type| Constructor and Description |
|---|
NumericField(String name)
Creates a new NumericField with the given name.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
format(Integer i)
Formats the given integer in the format required by a numeric field.
|
static Integer |
parse(String str)
Parses the given string as an integer, where the given string is in the
format required by a numeric field.
|
getName, getOptions, getType, setName, setOptions, setTypepublic NumericField(String name)
name - The unique name to associate with this field.public static String format(Integer i)
i - The integer to format, which may be null.public static Integer parse(String str) throws NumberFormatException
str - The string to parse as an integer, which may be null.NumberFormatException - If the given string is not in a parseable format.Copyright © 2015. All rights reserved.