se.unlogic.standardutils.numbers
Class NumberUtils
java.lang.Object
se.unlogic.standardutils.numbers.NumberUtils
public class NumberUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NumberUtils
public NumberUtils()
isLong
public static boolean isLong(Double value)
isInt
public static boolean isInt(String value)
isLong
public static boolean isLong(String value)
isFloat
public static boolean isFloat(String value)
isDouble
public static boolean isDouble(String value)
isNumber
public static boolean isNumber(String value)
toInt
public static Integer toInt(String value)
toInt
public static List<Integer> toInt(Collection<? extends Object> list,
Field field)
throws IllegalArgumentException,
IllegalAccessException
- Throws:
IllegalArgumentException
IllegalAccessException
toInt
public static ArrayList<Integer> toInt(Collection<String> values)
toInt
public static ArrayList<Integer> toInt(String[] values)
toLong
public static Long toLong(String value)
toFloat
public static Float toFloat(String value)
toDouble
public static Double toDouble(String value)
toDouble
public static List<Double> toDouble(List<String> values)
toLong
public static List<Long> toLong(List<String> values)
getNumbers
public static Long getNumbers(String revstring)
formatNumber
public static String formatNumber(Number value,
int minDecimals,
int maxDecimals,
boolean grouping,
boolean dotDecimalSymbol)
toByte
public static Byte toByte(String value)
Copyright © 2011. All Rights Reserved.