| Modifier and Type | Field and Description |
|---|---|
| private static int | |
| private static long | |
| private static long | |
| private static int | |
| private static long | |
| pack-priv static final String | |
| pack-priv static final String | |
| private static final String[] | |
| private static final String[] | |
| private static final int[] | TRIPLET_TO_CHARS
Encoded representations of 3-decimal-digit indexed values, where 3 LSB are ascii characters |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static int | |
| private static int | |
| private static int | |
| private static int | |
| private static int | |
| private static int | |
| private static int | |
| private static int | |
| private static int | |
| private static int | |
| private static int | |
| private static int | |
| private static int | |
| private static int | |
| pack-priv static int | divBy1000(int number)
Optimized code for integer division by 1000; typically 50% higher throughput for calculation |
| public static boolean | Returns: True if number is NOT finite (is Infinity or NaN); false otherwise Since 2.10double value to checkHelper method to verify whether given |
| public static boolean | Returns: True if number is NOT finite (is Infinity or NaN); false otherwise Since 2.10float value to checkHelper method to verify whether given |
| public static int | Returns: Offset within buffer after outputtingintValue to append to buffer v, char[] Buffer to append value to: caller must guarantee there is enough room b, int Offset within output buffer ( off)b) to append number atMethod for appending value of given |
| public static int | |
| public static int | Returns: Offset within buffer after outputtinglongValue to append to buffer v, char[] Buffer to append value to: caller must guarantee there is enough room b, int Offset within output buffer ( off)b) to append number atMethod for appending value of given |
| public static int | |
| public static String | |
| public static String | |
| public static String | |
| public static String | Returns: double as a stringdouble v, final boolean whether to use Schubfach algorithm to write output (default false) useFastWriter)
|
| public static String | |
| public static String | Returns: float as a stringfloat v, final boolean whether to use Schubfach algorithm to write output (default false) useFastWriter)
|
| BILLION | back to summary |
|---|---|
| private static int BILLION | |
| BILLION_L | back to summary |
|---|---|
| private static long BILLION_L | |
| MAX_INT_AS_LONG | back to summary |
|---|---|
| private static long MAX_INT_AS_LONG | |
| MILLION | back to summary |
|---|---|
| private static int MILLION | |
| MIN_INT_AS_LONG | back to summary |
|---|---|
| private static long MIN_INT_AS_LONG | |
| SMALLEST_INT | back to summary |
|---|---|
| pack-priv static final String SMALLEST_INT | |
| SMALLEST_LONG | back to summary |
|---|---|
| pack-priv static final String SMALLEST_LONG | |
| sSmallIntStrs | back to summary |
|---|---|
| private static final String[] sSmallIntStrs | |
| sSmallIntStrs2 | back to summary |
|---|---|
| private static final String[] sSmallIntStrs2 | |
| TRIPLET_TO_CHARS | back to summary |
|---|---|
| private static final int[] TRIPLET_TO_CHARS Encoded representations of 3-decimal-digit indexed values, where 3 LSB are ascii characters
| |
| NumberOutput | back to summary |
|---|---|
| public NumberOutput() | |
| _full3 | back to summary |
|---|---|
| private static int _full3(int t, char[] b, int off) | |
| _full3 | back to summary |
|---|---|
| private static int _full3(int t, byte[] b, int off) | |
| _leading3 | back to summary |
|---|---|
| private static int _leading3(int t, char[] b, int off) | |
| _leading3 | back to summary |
|---|---|
| private static int _leading3(int t, byte[] b, int off) | |
| _outputFullBillion | back to summary |
|---|---|
| private static int _outputFullBillion(int v, char[] b, int off) | |
| _outputFullBillion | back to summary |
|---|---|
| private static int _outputFullBillion(int v, byte[] b, int off) | |
| _outputSmallestI | back to summary |
|---|---|
| private static int _outputSmallestI(char[] b, int off) | |
| _outputSmallestI | back to summary |
|---|---|
| private static int _outputSmallestI(byte[] b, int off) | |
| _outputSmallestL | back to summary |
|---|---|
| private static int _outputSmallestL(char[] b, int off) | |
| _outputSmallestL | back to summary |
|---|---|
| private static int _outputSmallestL(byte[] b, int off) | |
| _outputUptoBillion | back to summary |
|---|---|
| private static int _outputUptoBillion(int v, char[] b, int off) | |
| _outputUptoBillion | back to summary |
|---|---|
| private static int _outputUptoBillion(int v, byte[] b, int off) | |
| _outputUptoMillion | back to summary |
|---|---|
| private static int _outputUptoMillion(char[] b, int off, int thousands, int ones) | |
| _outputUptoMillion | back to summary |
|---|---|
| private static int _outputUptoMillion(byte[] b, int off, int thousands, int ones) | |
| divBy1000 | back to summary |
|---|---|
| pack-priv static int divBy1000(int number) Optimized code for integer division by 1000; typically 50% higher throughput for calculation
| |
| notFinite | back to summary |
|---|---|
| public static boolean notFinite(double value) Helper method to verify whether given
| |
| notFinite | back to summary |
|---|---|
| public static boolean notFinite(float value) Helper method to verify whether given
| |
| outputInt | back to summary |
|---|---|
| public static int outputInt(int v, char[] b, int off) Method for appending value of given Note caller must guarantee that the output buffer has enough room for String representation of the value.
| |
| outputInt | back to summary |
|---|---|
| public static int outputInt(int v, byte[] b, int off) | |
| outputLong | back to summary |
|---|---|
| public static int outputLong(long v, char[] b, int off) Method for appending value of given Note caller must guarantee that the output buffer has enough room for String representation of the value.
| |
| outputLong | back to summary |
|---|---|
| public static int outputLong(long v, byte[] b, int off) | |
| toString | back to summary |
|---|---|
| public static String toString(int v) | |
| toString | back to summary |
|---|---|
| public static String toString(long v) | |
| toString | back to summary |
|---|---|
public static String toString(final double v)
| |
| toString | back to summary |
|---|---|
public static String toString(final double v, final boolean useFastWriter)
| |
| toString | back to summary |
|---|---|
public static String toString(final float v)
| |
| toString | back to summary |
|---|---|
public static String toString(final float v, final boolean useFastWriter)
| |