public class StringUtil extends Object
Constructor and Description |
---|
StringUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
bool2Char(boolean value)
Converts the given boolean to character.
|
static String |
bool2CharEmpty(boolean value)
Converts the given boolean to character.
|
static String |
bool2Int(boolean value)
Converts the given boolean to string.
|
static String |
intToFixedLengthString(int value,
int length)
Converts the given integer to a fixed length string by adding
leading zeros to the given number that its length equals to the
given length.
|
public StringUtil()
public static String bool2Int(boolean value)
value
- boolean valuepublic static String bool2Char(boolean value)
value
- boolean valuepublic static String bool2CharEmpty(boolean value)
value
- boolean valuepublic static String intToFixedLengthString(int value, int length)
value
- integer value to be convertedlength
- length of the output stringCopyright © 2004–2015 The Kuali Foundation. All rights reserved.