Class RealRepresentation.Number2SignUnsigned

  • Enclosing class:
    RealRepresentation

    private static class RealRepresentation.Number2SignUnsigned
    extends java.lang.Object
    Container for number splitted into sign and unsigned.
    • Constructor Summary

      Constructors 
      Constructor Description
      Number2SignUnsigned​(java.lang.String signed)
      Creates a new Number2SignUnsigned instance wrapping a string representation of a number.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) java.lang.String getSign()  
      (package private) java.lang.String getUnSigned()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Number2SignUnsigned

        Number2SignUnsigned​(java.lang.String signed)
        Creates a new Number2SignUnsigned instance wrapping a string representation of a number.
        Parameters:
        signed - a String representation 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.
    • Method Detail

      • getSign

        java.lang.String getSign()
      • getUnSigned

        java.lang.String getUnSigned()