Class LimitedCharArrayIntegerUtil

java.lang.Object
com.ethlo.time.internal.util.LimitedCharArrayIntegerUtil

public final class LimitedCharArrayIntegerUtil extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final char
     
    private static final char[]
     
    private static final char[]
     
    private static final int
     
    private static final int
     
    private static final int
     
    private static final int
     
    static final char
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private static void
    copy(char[] buf, int srcPos, char[] target, int offset, int length)
     
    private static void
    copy(char[] buf, int srcPos, int offset, int length)
     
    private static void
    createBufferEntry(char[] buf, int offset, int charLength, int value)
     
    static int
    parsePositiveInt(String strNum, int startInclusive, int endExclusive)
     
    static void
    toString(int value, char[] buf, int offset, int charLength)
     
    private static void
    zeroFill(char[] buf, int offset, int padPrefixLen)
     

    Methods inherited from class java.lang.Object

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

    • DIGIT_9

      public static final char DIGIT_9
      See Also:
    • ZERO

      public static final char ZERO
      See Also:
    • DIGITS

      private static final char[] DIGITS
    • TABLE_WIDTH

      private static final int TABLE_WIDTH
      See Also:
    • RADIX

      private static final int RADIX
      See Also:
    • MAX_INT_WIDTH

      private static final int MAX_INT_WIDTH
      See Also:
    • TABLE_SIZE

      private static final int TABLE_SIZE
    • INT_CONVERSION_CACHE

      private static final char[] INT_CONVERSION_CACHE
  • Constructor Details

    • LimitedCharArrayIntegerUtil

      private LimitedCharArrayIntegerUtil()
  • Method Details

    • parsePositiveInt

      public static int parsePositiveInt(String strNum, int startInclusive, int endExclusive)
    • toString

      public static void toString(int value, char[] buf, int offset, int charLength)
    • createBufferEntry

      private static void createBufferEntry(char[] buf, int offset, int charLength, int value)
    • zeroFill

      private static void zeroFill(char[] buf, int offset, int padPrefixLen)
    • copy

      private static void copy(char[] buf, int srcPos, int offset, int length)
    • copy

      private static void copy(char[] buf, int srcPos, char[] target, int offset, int length)