xxl.cursors
Class RandomIntegers

java.lang.Object
  |
  +--xxl.cursors.AbstractCursor
        |
        +--xxl.cursors.RandomIntegers

public class RandomIntegers
extends AbstractCursor

The RandomIntegers-Cursor returns random Integer-Objects. TODO: Random uebergeben


Field Summary
protected  int maxValue
           
protected  int noOfObjects
           
protected  java.util.Random random
           
 
Fields inherited from class xxl.cursors.AbstractCursor
hasNext, iterator, next
 
Constructor Summary
RandomIntegers(int noOfObjects)
           
RandomIntegers(int maxValue, int noOfObjects)
           
RandomIntegers(long seed, int maxValue, int noOfObjects)
           
 
Method Summary
protected  void computeNext()
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class xxl.cursors.AbstractCursor
close, hasNext, next, peek, remove, reset, setNext, setNextIterator, supportsPeek, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

random

protected java.util.Random random

maxValue

protected int maxValue

noOfObjects

protected int noOfObjects
Constructor Detail

RandomIntegers

public RandomIntegers(long seed,
                      int maxValue,
                      int noOfObjects)

RandomIntegers

public RandomIntegers(int maxValue,
                      int noOfObjects)

RandomIntegers

public RandomIntegers(int noOfObjects)
Method Detail

computeNext

protected void computeNext()
Overrides:
computeNext in class AbstractCursor

main

public static void main(java.lang.String[] args)