public final class NumberOutput
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static int |
BILLION |
private static long |
BILLION_L |
private static long |
MAX_INT_AS_LONG |
private static int |
MILLION |
private static long |
MIN_INT_AS_LONG |
(package private) static java.lang.String |
SMALLEST_INT |
(package private) static java.lang.String |
SMALLEST_LONG |
private static java.lang.String[] |
sSmallIntStrs |
private static java.lang.String[] |
sSmallIntStrs2 |
private static int[] |
TRIPLET_TO_CHARS
Encoded representations of 3-decimal-digit indexed values, where
3 LSB are ascii characters
|
Constructor and Description |
---|
NumberOutput() |
Modifier and Type | Method and Description |
---|---|
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) |
private static int |
_outputFullBillion(int v,
byte[] b,
int off) |
private static int |
_outputFullBillion(int v,
char[] b,
int off) |
private static int |
_outputSmallestI(byte[] b,
int off) |
private static int |
_outputSmallestI(char[] b,
int off) |
private static int |
_outputSmallestL(byte[] b,
int off) |
private static int |
_outputSmallestL(char[] b,
int off) |
private static int |
_outputUptoBillion(int v,
byte[] b,
int off) |
private static int |
_outputUptoBillion(int v,
char[] b,
int off) |
private static int |
_outputUptoMillion(byte[] b,
int off,
int thousands,
int ones) |
private static int |
_outputUptoMillion(char[] b,
int off,
int thousands,
int ones) |
static boolean |
notFinite(double value)
Helper method to verify whether given
double value is finite
(regular rational number} or not (NaN or Infinity). |
static boolean |
notFinite(float value)
Helper method to verify whether given
float value is finite
(regular rational number} or not (NaN or Infinity). |
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 int MILLION
private static int BILLION
private static long BILLION_L
private static long MIN_INT_AS_LONG
private static long MAX_INT_AS_LONG
static final java.lang.String SMALLEST_INT
static final java.lang.String SMALLEST_LONG
private static final int[] TRIPLET_TO_CHARS
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)
public static boolean notFinite(double value)
double
value is finite
(regular rational number} or not (NaN or Infinity).public static boolean notFinite(float value)
float
value is finite
(regular rational number} or not (NaN or Infinity).private static int _outputUptoBillion(int v, char[] b, int off)
private static int _outputFullBillion(int v, char[] b, int off)
private static int _outputUptoBillion(int v, byte[] b, int off)
private static int _outputFullBillion(int v, byte[] b, int off)
private static int _outputUptoMillion(char[] b, int off, int thousands, int ones)
private static int _outputUptoMillion(byte[] b, int off, int thousands, int ones)
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 _outputSmallestL(char[] b, int off)
private static int _outputSmallestL(byte[] b, int off)
private static int _outputSmallestI(char[] b, int off)
private static int _outputSmallestI(byte[] b, int off)