Package it.unimi.di.prog2.h15
Class DecimalDigitsNSG.NonZeroDigitsGeneratorNS
java.lang.Object
it.unimi.di.prog2.h15.DecimalDigitsNSG.NonZeroDigitsGeneratorNS
- Enclosing class:
DecimalDigitsNSG
private static class DecimalDigitsNSG.NonZeroDigitsGeneratorNS
extends Object
implements Iterator<Integer>
A nested static class implementing the genrator.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate long
The remaining digits to return (except possibly for the trailing zeroes). -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
NonZeroDigitsGeneratorNS
(long number) Creates a new generator for the given number. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Field Details
-
remaining
private long remainingThe remaining digits to return (except possibly for the trailing zeroes).
-
-
Constructor Details
-
NonZeroDigitsGeneratorNS
private NonZeroDigitsGeneratorNS(long number) Creates a new generator for the given number.- Parameters:
number
- the number.
-
-
Method Details