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

public class Divisor extends Object implements it.unimi.dsi.fastutil.ints.IntIterator
  • 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()
      Specified by:
      hasNext in interface Iterator<Integer>
    • nextInt

      public int nextInt()
      Specified by:
      nextInt in interface it.unimi.dsi.fastutil.ints.IntIterator
      Specified by:
      nextInt in interface PrimitiveIterator.OfInt
    • asIterable

      public static Iterable<Integer> asIterable(int p_254381_, int p_254129_)