Package com.mojang.math
Class Divisor
java.lang.Object
com.mojang.math.Divisor
- All Implemented Interfaces:
it.unimi.dsi.fastutil.ints.IntIterator
,Iterator<Integer>
,PrimitiveIterator<Integer,
,IntConsumer> PrimitiveIterator.OfInt
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.PrimitiveIterator
PrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLong
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final int
private final int
private int
private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasIterable
(int p_254381_, int p_254129_) boolean
hasNext()
int
nextInt()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface it.unimi.dsi.fastutil.ints.IntIterator
forEachRemaining, forEachRemaining, next, skip
Methods inherited from interface java.util.PrimitiveIterator.OfInt
forEachRemaining
-
Field Details
-
denominator
private final int denominator -
quotient
private final int quotient -
mod
private final int mod -
returnedParts
private int returnedParts -
remainder
private int remainder
-
-
Constructor Details
-
Divisor
public Divisor(int p_254018_, int p_254504_)
-
-
Method Details
-
hasNext
public boolean hasNext() -
nextInt
public int nextInt()- Specified by:
nextInt
in interfaceit.unimi.dsi.fastutil.ints.IntIterator
- Specified by:
nextInt
in interfacePrimitiveIterator.OfInt
-
asIterable
-