Liferay 6.1.2-ce-ga3

com.liferay.portal.kernel.util
Class MathUtil

java.lang.Object
  extended by com.liferay.portal.kernel.util.MathUtil
Direct Known Subclasses:
MathUtil

public class MathUtil
extends Object


Constructor Summary
MathUtil()
           
 
Method Summary
static int base2Log(long x)
           
static long base2Pow(int x)
           
static int factorial(int x)
           
static double format(double x, int max, int min)
           
static int[] generatePrimes(int max)
           
static boolean isEven(int x)
           
static boolean isOdd(int x)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MathUtil

public MathUtil()
Method Detail

base2Log

public static int base2Log(long x)

base2Pow

public static long base2Pow(int x)

factorial

public static int factorial(int x)

format

public static double format(double x,
                            int max,
                            int min)

generatePrimes

public static int[] generatePrimes(int max)

isEven

public static boolean isEven(int x)

isOdd

public static boolean isOdd(int x)

Liferay 6.1.2-ce-ga3