|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.reporting.engine.classic.core.util.StringUtil
public final class StringUtil
String utility functions. Provides functions to parse floats, ints and boolean values.
Method Summary | |
---|---|
static boolean |
parseBoolean(String attribute,
boolean defaultValue)
Parses the given string into a boolean value. |
static float |
parseFloat(String value,
float defaultValue)
Parses the given string and returns the parsed integer value or the given default if the parsing failed. |
static int |
parseInt(String value,
int defaultValue)
Parses the given string and returns the parsed integer value or the given default if the parsing failed. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static int parseInt(String value, int defaultValue)
value
- the to be parsed stringdefaultValue
- the default value
public static float parseFloat(String value, float defaultValue)
value
- the to be parsed stringdefaultValue
- the default value
public static boolean parseBoolean(String attribute, boolean defaultValue)
attribute
- the string that should be parsed.defaultValue
- the default value, in case the string is null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |