Package org.jparsec

Class Tokens.ScientificNotation

  • Enclosing class:
    Tokens

    public static final class Tokens.ScientificNotation
    extends java.lang.Object
    Represents a scientific notation with a significand (mantissa) and an exponent. Both are represented with a String to avoid number range issue.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String exponent
      The exponent after the "E".
      java.lang.String significand
      The significand (mantissa) before the "E".
    • Constructor Summary

      Constructors 
      Constructor Description
      ScientificNotation​(java.lang.String mantissa, java.lang.String exp)
      Deprecated.
      Use Tokens.scientificNotation() instead.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • significand

        public final java.lang.String significand
        The significand (mantissa) before the "E".
      • exponent

        public final java.lang.String exponent
        The exponent after the "E".
    • Constructor Detail

      • ScientificNotation

        @Deprecated
        public ScientificNotation​(java.lang.String mantissa,
                                  java.lang.String exp)
        Deprecated.
        Use Tokens.scientificNotation() instead.
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object