|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ericaro.neoitertools.generators.combinatorics.BigNumber
public abstract class BigNumber
A BigNumber is simply a number represented by a fixed collections of digits of size size.
it requires two abstract method :
inc() to move to the next one.
| Field Summary | |
|---|---|
protected int[] |
base
|
protected int |
size
|
| Constructor Summary | |
|---|---|
BigNumber(int size)
|
|
| Method Summary | |
|---|---|
protected abstract void |
inc()
increment this big number by one |
int[] |
next()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int[] base
protected int size
| Constructor Detail |
|---|
public BigNumber(int size)
| Method Detail |
|---|
protected abstract void inc()
throws java.util.NoSuchElementException
java.util.NoSuchElementExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic int[] next()
next in interface Generator<int[]>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||