Package com.ethlo.time.internal.util
Class LimitedCharArrayIntegerUtil
- java.lang.Object
-
- com.ethlo.time.internal.util.LimitedCharArrayIntegerUtil
-
public final class LimitedCharArrayIntegerUtil extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static char
DIGIT_9
private static char[]
DIGITS
private static char[]
INT_CONVERSION_CACHE
private static int
MAX_INT_WIDTH
private static int
RADIX
private static int
TABLE_SIZE
private static int
TABLE_WIDTH
static char
ZERO
-
Constructor Summary
Constructors Modifier Constructor Description private
LimitedCharArrayIntegerUtil()
-
Method Summary
All Methods Static Methods Concrete Methods 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(java.lang.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)
-
-
-
Field Detail
-
DIGIT_9
public static final char DIGIT_9
- See Also:
- Constant Field Values
-
ZERO
public static final char ZERO
- See Also:
- Constant Field Values
-
DIGITS
private static final char[] DIGITS
-
TABLE_WIDTH
private static final int TABLE_WIDTH
- See Also:
- Constant Field Values
-
RADIX
private static final int RADIX
- See Also:
- Constant Field Values
-
MAX_INT_WIDTH
private static final int MAX_INT_WIDTH
- See Also:
- Constant Field Values
-
TABLE_SIZE
private static final int TABLE_SIZE
-
INT_CONVERSION_CACHE
private static final char[] INT_CONVERSION_CACHE
-
-
Method Detail
-
parsePositiveInt
public static int parsePositiveInt(java.lang.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)
-
-