|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.jcrutil.RandomGenerator
public class RandomGenerator
Field Summary | |
---|---|
protected static String[] |
LANGUAGES
|
protected static Random |
random
|
Method Summary | |
---|---|
static Calendar |
getCalendarAfter(Calendar date)
|
static Calendar |
getCalendarBefore(Calendar date)
|
static Calendar |
getFuturCalendar()
|
static Calendar |
getOutdatedCalendar()
|
static boolean |
getRandomBoolean()
Generate a random boolean. |
static Calendar |
getRandomCalendar()
|
static int |
getRandomDay()
Generate a random int between 0 and 31. |
static float |
getRandomFloat()
Generate a random float. |
static int |
getRandomHour()
Generate a random int between 0 and 23. |
static int |
getRandomInt()
Generate a random int. |
static int |
getRandomInt(int max)
Generate a random int in the 0 inclusive max exclusive. |
static String |
getRandomLanguage()
Generate a random language |
static long |
getRandomLong()
Generate a random long. |
static int |
getRandomMinutes()
Generate a random int between 0 and 59. |
static int |
getRandomMonth()
Generate a random int between 0 and 11. |
static String |
getRandomString()
Generate a random String of size 32. |
static int |
getRandomYear()
Generate a random int between 2019 and 2019. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String[] LANGUAGES
protected static final Random random
Method Detail |
---|
public static int getRandomHour()
public static int getRandomMinutes()
public static int getRandomMonth()
public static int getRandomYear()
public static int getRandomDay()
public static long getRandomLong()
public static float getRandomFloat()
public static String getRandomString()
public static String getRandomLanguage()
public static boolean getRandomBoolean()
public static int getRandomInt()
public static int getRandomInt(int max)
max
- the exclusive maximum of the random int.
public static Calendar getOutdatedCalendar()
public static Calendar getFuturCalendar()
public static Calendar getRandomCalendar()
public static Calendar getCalendarAfter(Calendar date)
public static Calendar getCalendarBefore(Calendar date)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |