From: Sasa M. <sa...@us...> - 2004-07-22 08:10:28
|
Update of /cvsroot/jrobin/src/org/jrobin/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29692/org/jrobin/core Modified Files: Util.java Log Message: javadoc added Index: Util.java =================================================================== RCS file: /cvsroot/jrobin/src/org/jrobin/core/Util.java,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** Util.java 21 Jul 2004 07:10:26 -0000 1.21 --- Util.java 22 Jul 2004 08:10:19 -0000 1.22 *************** *** 215,218 **** --- 215,224 ---- } + /** + * Parses input string as a double value. If the value cannot be parsed, Double.NaN + * is returned (NumberFormatException is never thrown). + * @param valueStr String representing double value + * @return a double corresponding to the input string + */ public static double parseDouble(String valueStr) { double value; *************** *** 226,229 **** --- 232,241 ---- } + /** + * Parses input string as a boolean value. The parser is case insensitive. + * @param valueStr String representing boolean value + * @return <code>true</code>, if valueStr equals to 'true', 'on', 'yes', 'y' or '1'; + * <code>false</code> in all other cases. + */ public static boolean parseBoolean(String valueStr) { return valueStr.equalsIgnoreCase("true") || |