public static class MatrixEditor.IntegerElementFormat extends MatrixEditor.NumericElementFormat<java.lang.Integer>
Integer
objects in a matrix.
Integer.MAX_VALUE
as the infinity value.MatrixEditor.NumericElementFormat
Constructor and Description |
---|
MatrixEditor.IntegerElementFormat()
Creates a new integer element format.
|
MatrixEditor.IntegerElementFormat(java.lang.String infinityChar)
Creates a new integer element format.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Integer |
getInfinity()
Gets the value of infinity.
|
protected java.lang.Integer |
parseElement(java.lang.String element)
Parses the given element.
|
format, parse
public MatrixEditor.IntegerElementFormat()
public MatrixEditor.IntegerElementFormat(java.lang.String infinityChar) throws java.lang.IllegalArgumentException
infinityChar
- the character that represents infinityjava.lang.IllegalArgumentException
- protected java.lang.Integer getInfinity()
MatrixEditor.NumericElementFormat
getInfinity
in class MatrixEditor.NumericElementFormat<java.lang.Integer>
protected java.lang.Integer parseElement(java.lang.String element) throws java.text.ParseException
MatrixEditor.NumericElementFormat
parseElement
in class MatrixEditor.NumericElementFormat<java.lang.Integer>
element
- the text representation of the elementjava.text.ParseException
-