Package eu.simuline.util
Class RealRepresentation.Number2SignUnsigned
- java.lang.Object
-
- eu.simuline.util.RealRepresentation.Number2SignUnsigned
-
- Enclosing class:
- RealRepresentation
private static class RealRepresentation.Number2SignUnsigned extends Object
Container for number splitted into sign and unsigned.
-
-
Field Summary
Fields Modifier and Type Field Description private StringsignThe sign which is eitherRealRepresentation.SIGN_PLUSorRealRepresentation.SIGN_MINUS.private StringunSignedThe unsigned part of a number.
-
Constructor Summary
Constructors Constructor Description Number2SignUnsigned(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) StringgetSign()(package private) StringgetUnSigned()
-
-
-
Field Detail
-
sign
private final String sign
The sign which is eitherRealRepresentation.SIGN_PLUSorRealRepresentation.SIGN_MINUS.
-
unSigned
private final String unSigned
The unsigned part of a number.
-
-
Constructor Detail
-
Number2SignUnsigned
Number2SignUnsigned(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:
NumberFormatException- if the first symbol is neither a sign nor a digit.
-
-