public class NumberUtils extends Object
Constructor and Description |
---|
NumberUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
formatInt(StringBuilder sb,
int value)
Fast, but basic, integer to StringBuilder
|
static void |
formatInt(StringBuilder sb,
int value,
int width)
Place a fixed width representation of a non-negative int into the string buffer
|
static void |
formatInt(StringBuilder sb,
int value,
int width,
boolean signAlways)
Format an integer, which may be signed
|
static void |
formatSignedInt(StringBuilder sb,
int value)
Fast, but basic, integer to StringBuilder : always signed
|
static void |
formatSignedInt(StringBuilder sb,
int value,
int width)
Place a fixed width representation into the string buffer : always signed.
|
static void |
formatUnsignedInt(StringBuilder sb,
int value,
int width)
Place a fixed width representation into the string buffer : never signed.
|
public static void formatInt(StringBuilder sb, int value)
public static void formatSignedInt(StringBuilder sb, int value)
public static void formatInt(StringBuilder sb, int value, int width)
public static void formatSignedInt(StringBuilder sb, int value, int width)
public static void formatInt(StringBuilder sb, int value, int width, boolean signAlways)
public static void formatUnsignedInt(StringBuilder sb, int value, int width)
Licenced under the Apache License, Version 2.0