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