Class DecimalDigitsNSG.NonZeroDigitsGeneratorNS
java.lang.Object
it.unimi.di.prog2.h14.DecimalDigitsNSG.NonZeroDigitsGeneratorNS
- Enclosing class:
DecimalDigitsNSG
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longThe remaining digits to return (except possibly for the trailing zeroes). -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateNonZeroDigitsGeneratorNS(long number) Creates a new generator for the given number. -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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
-
hasNext
-
next
-