public class MethodsBag extends Object
| Modifier and Type | Field and Description |
|---|---|
static char[] |
INTEGER_MIN_VALUE_CHARARRAY |
static char[] |
LONG_MIN_VALUE_CHARARRAY |
| Constructor and Description |
|---|
MethodsBag() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getCodingLength(int characteristics) |
static int |
getStringSize(int i) |
static int |
getStringSize(long l) |
static void |
itos(int i,
int index,
char[] buf)
Places characters representing the integer i into the character array
buf.
|
static void |
itos(long i,
int index,
char[] buf)
Places characters representing the integer i into the character array
buf.
|
static int |
itosReverse(int i,
int index,
char[] buf)
Places characters representing the integer i into the character array buf
in reverse order.
|
static void |
itosReverse(long i,
int index,
char[] buf)
Places characters representing the integer i into the character array buf
in reverse order.
|
static int |
numberOf7BitBlocksToRepresent(int n)
Returns the least number of 7 bit-blocks that is needed to represent the
parameter n.
|
static int |
numberOf7BitBlocksToRepresent(long l)
Returns the least number of 7 bit-blocks that is needed to represent the
parameter l.
|
public static final char[] INTEGER_MIN_VALUE_CHARARRAY
public static final char[] LONG_MIN_VALUE_CHARARRAY
public static int numberOf7BitBlocksToRepresent(int n)
n - integer valuepublic static int numberOf7BitBlocksToRepresent(long l)
l - long valuepublic static final int getCodingLength(int characteristics)
public static final int getStringSize(int i)
public static final int getStringSize(long l)
public static final void itos(int i,
int index,
char[] buf)
i - integerindex - indexbuf - character bufferpublic static final void itos(long i,
int index,
char[] buf)
i - integerindex - indexbuf - character bufferpublic static final int itosReverse(int i,
int index,
char[] buf)
i - integerindex - indexbuf - character bufferpublic static final void itosReverse(long i,
int index,
char[] buf)
i - integerindex - indexbuf - character bufferCopyright © 2018 Siemens AG. All rights reserved.