|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcytoscape.util.PropUtil
public class PropUtil
A stateless utility class that makes it easy to parse int and boolean values from a Properties object.
Method Summary | |
---|---|
static boolean |
getBoolean(Properties props,
String key,
boolean defaultValue)
Will return a boolean for the specified property key only if the value exists and if the string matches "true", "false", "yes", or "no" in a case insensitive manner. |
static float |
getFloat(Properties props,
String key,
float defaultValue)
Will return a float for the specified property key only if the value exists and is properly formatted as an float. |
static int |
getInt(Properties props,
String key,
int defaultValue)
Will return an integer for the specified property key only if the value exists and is properly formatted as an integer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static int getInt(Properties props, String key, int defaultValue)
public static float getFloat(Properties props, String key, float defaultValue)
public static boolean getBoolean(Properties props, String key, boolean defaultValue)
|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |