public static class CBigInteger.FibonacciIterator extends Object implements Iterator<BigInteger>
Constructor and Description |
---|
FibonacciIterator() |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
There will always be another Fibonacci number.
|
BigInteger |
next()
Gets the next fibonacci number in sequence.
|
void |
remove()
Removing a Fibonacci number is unsupported.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public boolean hasNext()
hasNext
in interface Iterator<BigInteger>
public BigInteger next()
next
in interface Iterator<BigInteger>
public void remove()
remove
in interface Iterator<BigInteger>
UnsupportedOperationException
- Always!Copyright © 2008–2018. All rights reserved.