| java.lang.Object org.lateralnz.common.util.NumericUtils
NumericUtils | final public class NumericUtils implements Constants(Code) | | command number formatting utilities
author: J R Briggs |
Method Summary | |
final public static String | format(String callerClassName, long l, String pattern) | final public static String | format(String callerClassName, float f, String pattern) | final public static String | format(String callerClassName, double d, String pattern) | final public static String | format(String callerClassName, long l, Locale locale, String pattern) | final public static String | format(String callerClassName, float f, Locale locale, String pattern) | final public static String | format(String callerClassName, double d, Locale locale, String pattern) | final public static boolean | isNumber(String s) | final public static double | parseDouble(String callerClassName, String s, String pattern) | final public static double | parseDouble(String callerClassName, String s, Locale locale, String pattern) | final public static byte[] | toByteArray(int n) | final public static byte[] | toByteArray(int n, boolean calcLength) | final public static int | toInt(byte[] b) | final public static int | toInt(byte[] b, int offset, int len) | final public static String | toString(byte[] b) |
isNumber | final public static boolean isNumber(String s)(Code) | | |
parseDouble | final public static double parseDouble(String callerClassName, String s, Locale locale, String pattern) throws ParseException(Code) | | turns a string representation of a date into a date object using a cached format
Parameters: callerClassName - the class of the object calling this method (used for caching) Parameters: s - the string date to convert Parameters: locale - the locale to use in conversion Parameters: pattern - the date format to use |
toByteArray | final public static byte[] toByteArray(int n)(Code) | | |
toByteArray | final public static byte[] toByteArray(int n, boolean calcLength)(Code) | | |
toInt | final public static int toInt(byte[] b)(Code) | | |
toInt | final public static int toInt(byte[] b, int offset, int len)(Code) | | |
|
|