Class Longs


  • public class Longs
    extends java.lang.Object
    Long relevant utilities.
    Author:
    tomyeh
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.Long ZERO
      The zero.
    • Constructor Summary

      Constructors 
      Constructor Description
      Longs()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String toStringByScale​(long val, int digits)
      urns a String object representing the specified integer, with the (at-least) specified digits.
      • Methods inherited from class java.lang.Object

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

      • ZERO

        public static final java.lang.Long ZERO
        The zero.
    • Constructor Detail

      • Longs

        public Longs()
    • Method Detail

      • toStringByScale

        public static final java.lang.String toStringByScale​(long val,
                                                             int digits)
        urns a String object representing the specified integer, with the (at-least) specified digits.

        Example: toStringByScale(123, 5) returns "00123", toStringByScale(123, 2) returns "123".