|
Cytoscape 2.7.0 (c) 2006,2007 ISB, MSKCC, UCSD | ||||||||
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 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 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static int getInt(Properties props, String key, int defaultValue)
public static boolean getBoolean(Properties props, String key, boolean defaultValue)
|
www.cytoscape.org | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |