|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.biocomfort.Utils.FormatHelper
public class FormatHelper
The class FormatHelper
offers static methods to convert
data structures in String
objects.
Constructor Summary | |
---|---|
FormatHelper()
|
Method Summary | |
---|---|
static java.lang.String |
booleanArraytoString(boolean[] booleans,
java.lang.String separator)
Converts the given boolean array to a String object of
custom separated representations of each boolean value. |
static java.lang.String |
BooleanToBit(boolean value)
Converts the given boolean value to a String object,
whereby '1' represents the boolean value true and '0'
represents false . |
static java.lang.String |
shortArrayToHexString(short[] data,
java.lang.String separator)
Converts the given short array to a String object of
custom separated hexadecimal representations of each short value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FormatHelper()
Method Detail |
---|
public static final java.lang.String shortArrayToHexString(short[] data, java.lang.String separator)
String
object of
custom separated hexadecimal representations of each short value.
data
- the short array to convertseparator
- the separator string that is inserted between each two short
representations
public static java.lang.String booleanArraytoString(boolean[] booleans, java.lang.String separator)
String
object of
custom separated representations of each boolean value. The
String
'1' represents the boolean value true
and the String
'0' represents the value
false
.
booleans
- the boolean array to convertseparator
- the separator string that is inserted between each two
boolean representations.
public static java.lang.String BooleanToBit(boolean value)
String
object,
whereby '1' represents the boolean value true
and '0'
represents false
.
value
- the boolean value to convert
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |