All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sdsu.algorithms.data.IntegerObjectGenerator

java.lang.Object
   |
   +----sdsu.algorithms.data.IntegerObjectGenerator

public class IntegerObjectGenerator
extends Object
implements ObjectGenerator
Converts a sequence of numbers to a sequence of Integer objects. Uses a NumberGenerator to actually generate the sequence. The class wraps the number in an Integer object. The numbers generated be the NumberGenerator are cast to an int.

Version:
1.0 19 June 1997
Author:
Roger Whitney (whitney@cs.sdsu.edu)
See Also:
ObjectGenerator, NumberGenerator

Constructor Index

 o IntegerObjectGenerator(NumberGenerator)
Create an IntegerObjectGenerator which uses aGenerator to generate the actual sequence of numbers.

Method Index

 o nextElement()
Returns the next int in the sequence.

Constructors

 o IntegerObjectGenerator
 public IntegerObjectGenerator(NumberGenerator aGenerator)
Create an IntegerObjectGenerator which uses aGenerator to generate the actual sequence of numbers.

Methods

 o nextElement
 public Object nextElement()
Returns the next int in the sequence. The int is rapped in an Integer object.


All Packages  Class Hierarchy  This Package  Previous  Next  Index