public final class NumberOutput
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static int |
BILLION |
private static char[] |
FULL_3 |
private static byte[] |
FULL_TRIPLETS_B |
private static char[] |
LEAD_3 |
private static long |
MAX_INT_AS_LONG |
private static int |
MILLION |
private static long |
MIN_INT_AS_LONG |
private static char |
NC |
(package private) static java.lang.String |
SMALLEST_LONG |
private static java.lang.String[] |
sSmallIntStrs |
private static java.lang.String[] |
sSmallIntStrs2 |
private static long |
TEN_BILLION_L |
private static long |
THOUSAND_L |
Constructor and Description |
---|
NumberOutput() |
Modifier and Type | Method and Description |
---|---|
private static int |
calcLongStrLength(long v)
Pre-conditions:
c is positive, and larger than
Integer.MAX_VALUE (about 2 billions). |
private static int |
full3(int t,
byte[] b,
int off) |
private static int |
full3(int t,
char[] b,
int off) |
private static int |
leading3(int t,
byte[] b,
int off) |
private static int |
leading3(int t,
char[] b,
int off) |
static int |
outputInt(int v,
byte[] b,
int off) |
static int |
outputInt(int v,
char[] b,
int off) |
static int |
outputLong(long v,
byte[] b,
int off) |
static int |
outputLong(long v,
char[] b,
int off) |
static java.lang.String |
toString(double v) |
static java.lang.String |
toString(float v) |
static java.lang.String |
toString(int v) |
static java.lang.String |
toString(long v) |
private static final char NC
private static int MILLION
private static int BILLION
private static long TEN_BILLION_L
private static long THOUSAND_L
private static long MIN_INT_AS_LONG
private static long MAX_INT_AS_LONG
static final java.lang.String SMALLEST_LONG
private static final char[] LEAD_3
private static final char[] FULL_3
private static final byte[] FULL_TRIPLETS_B
private static final java.lang.String[] sSmallIntStrs
private static final java.lang.String[] sSmallIntStrs2
public static int outputInt(int v, char[] b, int off)
public static int outputInt(int v, byte[] b, int off)
public static int outputLong(long v, char[] b, int off)
public static int outputLong(long v, byte[] b, int off)
public static java.lang.String toString(int v)
public static java.lang.String toString(long v)
public static java.lang.String toString(double v)
public static java.lang.String toString(float v)
private static int leading3(int t, char[] b, int off)
private static int leading3(int t, byte[] b, int off)
private static int full3(int t, char[] b, int off)
private static int full3(int t, byte[] b, int off)
private static int calcLongStrLength(long v)
Pre-conditions: c
is positive, and larger than
Integer.MAX_VALUE (about 2 billions).