Class FastNumber

  • All Implemented Interfaces:
    java.io.Serializable

    
    public class FastNumber
    extends Number
                        

    An extension of Number optimized for speed at the cost of memory.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static FastNumber orNull(@Nullable() Number number) Safe-instantiator of FastNumber; returns a null result if the input Number is also null.
      int intValue()
      long longValue()
      float floatValue()
      double doubleValue()
      boolean equals(@Nullable() Object o) To be equal, two instances must both be instances of FastNumber.
      int hashCode()
      String toString()
      • Methods inherited from class java.lang.Number

        byteValue, shortValue
      • Methods inherited from class java.lang.Object

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