L2JPREMIUM  5M
com.premium.game.datatables.MathUtil Class Reference

Static Public Member Functions

static int countPagesNumber (int objectsSize, int pageSize)
 
static int limit (int numToTest, int min, int max)
 
static String formatDate (Date date, String format)
 

Member Function Documentation

◆ countPagesNumber()

static int com.premium.game.datatables.MathUtil.countPagesNumber ( int  objectsSize,
int  pageSize 
)
inlinestatic
Parameters
objectsSize: The overall elements size.
pageSize: The number of elements per page.
Returns
The number of pages, based on the number of elements and the number of elements we want per page.

◆ limit()

static int com.premium.game.datatables.MathUtil.limit ( int  numToTest,
int  min,
int  max 
)
inlinestatic
Parameters
numToTest: The number to test.
min: The minimum limit.
max: The maximum limit.
Returns
the number or one of the limit (mininum / maximum).

The documentation for this class was generated from the following file: