|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectproper.util.RandomID
public class RandomID
This class can produce an amount of randomized Integer-IDs.
| Constructor Summary | |
|---|---|
RandomID(int count)
initializes the object with the given number of ids (numbers from 0 to count - 1) |
|
RandomID(int count,
int from)
initializes the object with the given number of ids starting from "start" (numbers from "start" - "start + count - 1") |
|
| Method Summary | |
|---|---|
boolean |
hasMoreElements()
Tests if this enumeration contains more elements. |
java.lang.Object |
nextElement()
Returns the next element of this enumeration if this enumeration object has at least one more element to provide. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RandomID(int count)
public RandomID(int count,
int from)
| Method Detail |
|---|
public boolean hasMoreElements()
hasMoreElements in interface java.util.Enumeration
public java.lang.Object nextElement()
throws java.util.NoSuchElementException
nextElement in interface java.util.Enumerationjava.util.NoSuchElementException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||