openlist.incremental.util
Class IntegersFrom

java.lang.Object
  extended by openlist.incremental.util.IntegersFrom
All Implemented Interfaces:
Growable<java.lang.Integer>

public class IntegersFrom
extends java.lang.Object
implements Growable<java.lang.Integer>

IntegersFrom uses this Growable


Field Summary
(package private)  int n
          The current number from which growing takes place
 
Constructor Summary
IntegersFrom(int n)
          Create the Growable for the infinite list of integers from n.
 
Method Summary
 IncrementalList<java.lang.Integer> grow()
          grow the list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

n

int n
The current number from which growing takes place

Constructor Detail

IntegersFrom

public IntegersFrom(int n)
Create the Growable for the infinite list of integers from n.

Method Detail

grow

public IncrementalList<java.lang.Integer> grow()
grow the list

Specified by:
grow in interface Growable<java.lang.Integer>
Returns:
an IncrementalList