com.atlassian.bamboo.util
Class NumberUtils
java.lang.Object
com.atlassian.bamboo.util.NumberUtils
public class NumberUtils
- extends java.lang.Object
Method Summary |
static NumberUtils |
getInstance()
|
static boolean |
isPostiveInteger(java.lang.String input)
|
static
<T extends java.lang.Comparable<? super T>>
T |
|
max(java.util.Collection<T> collection)
|
static int |
max(int a,
int b)
|
static int |
min(int a,
int b)
|
static java.lang.String |
padWithZeroes(java.lang.Number value,
int numberOfZeroes)
|
static double |
round(double val,
int places)
|
static float |
round(float val,
int places)
|
static double |
stringToDouble(java.lang.String s)
|
static int |
stringToInt(java.lang.String s)
|
static long |
stringToLong(java.lang.String s)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static NumberUtils getInstance()
min
public static int min(int a,
int b)
max
public static int max(int a,
int b)
round
public static double round(double val,
int places)
round
public static float round(float val,
int places)
padWithZeroes
public static java.lang.String padWithZeroes(java.lang.Number value,
int numberOfZeroes)
stringToDouble
public static double stringToDouble(java.lang.String s)
stringToLong
public static long stringToLong(java.lang.String s)
stringToInt
public static int stringToInt(java.lang.String s)
max
public static <T extends java.lang.Comparable<? super T>> T max(@NotNull
java.util.Collection<T> collection)
isPostiveInteger
public static boolean isPostiveInteger(@Nullable
java.lang.String input)
Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.