public static class ExecutionTableItem.NumericInputParser extends java.lang.Object implements ExecutionTableItem.InputParser<java.lang.Number>
Constructor and Description |
---|
ExecutionTableItem.NumericInputParser()
Creates a new numeric input parser with
- as the infinity character and Float.POSITIVE_INFINITY
as the infinity value. |
ExecutionTableItem.NumericInputParser(java.lang.Number infinityValue)
Creates a new numeric input parser with
- as the infinity character. |
ExecutionTableItem.NumericInputParser(java.lang.String infinityChar,
java.lang.Number infinityValue)
Creates a new numeric input parser.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Number |
parse(java.lang.String input)
Parses an input string into a concrete object.
|
java.lang.Object |
prepareEditor(java.lang.Object o)
Prepares the editor of the input parser.
|
public ExecutionTableItem.NumericInputParser() throws java.lang.IllegalArgumentException
-
as the infinity character and Float.POSITIVE_INFINITY
as the infinity value.java.lang.IllegalArgumentException
public ExecutionTableItem.NumericInputParser(java.lang.Number infinityValue) throws java.lang.IllegalArgumentException
-
as the infinity character.infinityValue
- the value describing infinityjava.lang.IllegalArgumentException
- public ExecutionTableItem.NumericInputParser(java.lang.String infinityChar, java.lang.Number infinityValue) throws java.lang.IllegalArgumentException
infinityChar
- the character (sequence) describing infinityinfinityValue
- the value describing infinityjava.lang.IllegalArgumentException
- public java.lang.Object prepareEditor(java.lang.Object o)
ExecutionTableItem.InputParser
prepareEditor
in interface ExecutionTableItem.InputParser<java.lang.Number>
o
- the object that should be displayed in the editor of the input parser or null
if there is currently no object that could be displayed in the editorpublic java.lang.Number parse(java.lang.String input)
ExecutionTableItem.InputParser
parse
in interface ExecutionTableItem.InputParser<java.lang.Number>
input
- the input stringnull
if the input could not be parsed