|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sdsu.algorithms.data.IntegerObjectGenerator
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.
sdsu.data.ObjectGenerator
,
sdsu.data.NumberGenerator
Constructor Summary | |
IntegerObjectGenerator(NumberGenerator aGenerator)
Create an IntegerObjectGenerator which uses aGenerator to generate the actual sequence of numbers. |
Method Summary | |
java.lang.Object |
nextElement()
Returns the next int in the sequence. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public IntegerObjectGenerator(NumberGenerator aGenerator)
Method Detail |
public java.lang.Object nextElement()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |