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 charDIGIT_9private static char[]DIGITSprivate static char[]INT_CONVERSION_CACHEprivate static intMAX_INT_WIDTHprivate static intRADIXprivate static intTABLE_SIZEprivate static intTABLE_WIDTHstatic charZERO
-
Constructor Summary
Constructors Modifier Constructor Description privateLimitedCharArrayIntegerUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static voidcopy(char[] buf, int srcPos, char[] target, int offset, int length)private static voidcopy(char[] buf, int srcPos, int offset, int length)private static voidcreateBufferEntry(char[] buf, int offset, int charLength, int value)static intparsePositiveInt(java.lang.String strNum, int startInclusive, int endExclusive)static voidtoString(int value, char[] buf, int offset, int charLength)private static voidzeroFill(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)
-
-