Interface ChangeableNumber

  • All Known Implementing Classes:
    SimpleChangeableNumber

    public interface ChangeableNumber
    Interface that defines methods to convert numbers from any numeral system into another numeral system
    Since:
    Bitchanger 0.1.0
    Version:
    1.0.0
    Author:
    Tim Muehle
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default double asDouble()  
      javafx.beans.property.IntegerProperty baseProperty()  
      javafx.beans.property.ReadOnlyStringProperty logicStringProperty()  
      void reset()
      Resets the wrapped value.
      void set​(double decValue)  
      void setBin​(String binValue)
      Sets the value of this ChangeableNumber to the value of a binary string
      void setDec​(String decValue)
      Sets the value of this ChangeableNumber to the value of a decimal string
      void setHex​(String hexValue)
      Sets the value of this ChangeableNumber to the value of a hexadecimal string
      void setIEEE​(String ieee, IEEEStandard standard)
      Sets the value of this ChangeableNumber to a value of one of both IEEE standards (16 Bit or 32 Bit)
      void setOct​(String octValue)
      Sets the value of this ChangeableNumber to the value of an octal string
      void setValue​(String value, int baseOfValue)
      Sets the value of this ChangeableNumber to a value of any numeral system
      javafx.beans.property.ReadOnlyStringProperty stringProperty()  
      String toBaseString​(int base)
      Returns the string representation of this ChangeableNumber to any base.
      String toBinString()
      Returns the string representation of this ChangeableNumber as a binary string.
      String toDecString()
      Returns the string representation of this ChangeableNumber as a decimal string.
      String toHexString()
      Returns the string representation of this ChangeableNumber as a hexadecimal string.
      String toIEEEString​(IEEEStandard standard)
      Returns the String representation of this ChangeableNumber as IEEE standard String.
      String toOctString()
      Returns the string representation of this ChangeableNumber as an octal string.