Package eu.simuline.util
Class RealRepresentation.Number2SignUnsigned
- java.lang.Object
-
- eu.simuline.util.RealRepresentation.Number2SignUnsigned
-
- Enclosing class:
- RealRepresentation
private static class RealRepresentation.Number2SignUnsigned extends java.lang.ObjectContainer for number splitted into sign and unsigned.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringsignThe sign which is eitherRealRepresentation.SIGN_PLUSorRealRepresentation.SIGN_MINUS.private java.lang.StringunSignedThe unsigned part of a number.
-
Constructor Summary
Constructors Constructor Description Number2SignUnsigned(java.lang.String signed)Creates a newNumber2SignUnsignedinstance wrapping a string representation of a number.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.lang.StringgetSign()(package private) java.lang.StringgetUnSigned()
-
-
-
Field Detail
-
sign
private final java.lang.String sign
The sign which is eitherRealRepresentation.SIGN_PLUSorRealRepresentation.SIGN_MINUS.
-
unSigned
private final java.lang.String unSigned
The unsigned part of a number.
-
-
Constructor Detail
-
Number2SignUnsigned
Number2SignUnsigned(java.lang.String signed)
Creates a newNumber2SignUnsignedinstance wrapping a string representation of a number.- Parameters:
signed- aStringrepresentation of a number. There may be either an explicit sign or the first symbol is a digit.- Throws:
java.lang.NumberFormatException- if the first symbol is neither a sign nor a digit.
-
-