net.myrrix.common
Class LangUtils
java.lang.Object
net.myrrix.common.LangUtils
public final class LangUtils
- extends Object
General utility methods related to the language, or primitves.
- Author:
- Sean Owen
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parseFloat
public static float parseFloat(String s)
- Parses a
float from a String as if by Float.valueOf(String), but disallows special
values like Float.NaN, Float.POSITIVE_INFINITY and Float.NEGATIVE_INFINITY.
- Parameters:
s - String to parse
- Returns:
- floating-point value in the
String
- Throws:
IllegalArgumentException - if input does not parse as a floating-point value, or is infinite or
Float.NaN- See Also:
parseDouble(String)
parseDouble
public static double parseDouble(String s)
- See Also:
parseFloat(String)
Copyright © 2012. All Rights Reserved.