Package com.fasterxml.jackson.core.io
Class NumberOutput
- java.lang.Object
-
- com.fasterxml.jackson.core.io.NumberOutput
-
public final class NumberOutput extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static intBILLIONprivate static longBILLION_Lprivate static longMAX_INT_AS_LONGprivate static intMILLIONprivate static longMIN_INT_AS_LONG(package private) static java.lang.StringSMALLEST_INT(package private) static java.lang.StringSMALLEST_LONGprivate static java.lang.String[]sSmallIntStrsprivate static java.lang.String[]sSmallIntStrs2private static int[]TRIPLET_TO_CHARSEncoded representations of 3-decimal-digit indexed values, where 3 LSB are ascii characters
-
Constructor Summary
Constructors Constructor Description NumberOutput()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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 booleannotFinite(double value)Helper method to verify whether givendoublevalue is finite (regular rational number} or not (NaN or Infinity).static booleannotFinite(float value)Helper method to verify whether givenfloatvalue is finite (regular rational number} or not (NaN or Infinity).static intoutputInt(int v, byte[] b, int off)static intoutputInt(int v, char[] b, int off)static intoutputLong(long v, byte[] b, int off)static intoutputLong(long v, char[] b, int off)static java.lang.StringtoString(double v)static java.lang.StringtoString(float v)static java.lang.StringtoString(int v)static java.lang.StringtoString(long v)
-
-
-
Field Detail
-
MILLION
private static int MILLION
-
BILLION
private static int BILLION
-
BILLION_L
private static long BILLION_L
-
MIN_INT_AS_LONG
private static long MIN_INT_AS_LONG
-
MAX_INT_AS_LONG
private static long MAX_INT_AS_LONG
-
SMALLEST_INT
static final java.lang.String SMALLEST_INT
-
SMALLEST_LONG
static final java.lang.String SMALLEST_LONG
-
TRIPLET_TO_CHARS
private static final int[] TRIPLET_TO_CHARS
Encoded representations of 3-decimal-digit indexed values, where 3 LSB are ascii characters- Since:
- 2.8.2
-
sSmallIntStrs
private static final java.lang.String[] sSmallIntStrs
-
sSmallIntStrs2
private static final java.lang.String[] sSmallIntStrs2
-
-
Method Detail
-
outputInt
public static int outputInt(int v, char[] b, int off)- Returns:
- Offset within buffer after outputting int
-
outputInt
public static int outputInt(int v, byte[] b, int off)
-
outputLong
public static int outputLong(long v, char[] b, int off)- Returns:
- Offset within buffer after outputting int
-
outputLong
public static int outputLong(long v, byte[] b, int off)
-
toString
public static java.lang.String toString(int v)
-
toString
public static java.lang.String toString(long v)
-
toString
public static java.lang.String toString(double v)
-
toString
public static java.lang.String toString(float v)
- Since:
- 2.6.0
-
notFinite
public static boolean notFinite(double value)
Helper method to verify whether givendoublevalue is finite (regular rational number} or not (NaN or Infinity).- Returns:
- True if number is NOT finite (is Infinity or NaN); false otherwise Since 2.10
-
notFinite
public static boolean notFinite(float value)
Helper method to verify whether givenfloatvalue is finite (regular rational number} or not (NaN or Infinity).- Returns:
- True if number is NOT finite (is Infinity or NaN); false otherwise Since 2.10
-
_outputUptoBillion
private static int _outputUptoBillion(int v, char[] b, int off)
-
_outputFullBillion
private static int _outputFullBillion(int v, char[] b, int off)
-
_outputUptoBillion
private static int _outputUptoBillion(int v, byte[] b, int off)
-
_outputFullBillion
private static int _outputFullBillion(int v, byte[] b, int off)
-
_outputUptoMillion
private static int _outputUptoMillion(char[] b, int off, int thousands, int ones)
-
_outputUptoMillion
private static int _outputUptoMillion(byte[] b, int off, int thousands, int ones)
-
_leading3
private static int _leading3(int t, char[] b, int off)
-
_leading3
private static int _leading3(int t, byte[] b, int off)
-
_full3
private static int _full3(int t, char[] b, int off)
-
_full3
private static int _full3(int t, byte[] b, int off)
-
_outputSmallestL
private static int _outputSmallestL(char[] b, int off)
-
_outputSmallestL
private static int _outputSmallestL(byte[] b, int off)
-
_outputSmallestI
private static int _outputSmallestI(char[] b, int off)
-
_outputSmallestI
private static int _outputSmallestI(byte[] b, int off)
-
-