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