Class MultiIntCounter

java.lang.Object
net.bmahe.genetics4j.core.util.MultiIntCounter

public class MultiIntCounter extends Object
  • Field Details

    • indices

      final int[] indices
    • maxIndices

      final int[] maxIndices
  • Constructor Details

    • MultiIntCounter

      public MultiIntCounter(int... maxIndices)
  • Method Details

    • getIndices

      public int[] getIndices()
    • getIndex

      public int getIndex(int index)
    • getMaxIndices

      public int[] getMaxIndices()
    • getTotal

      public int getTotal()
    • hasNext

      public boolean hasNext()
    • next

      public int[] next()
      Parameters:
      indices -
      maxIndices -
      Returns:
      true if indices was successfully updates; false if there are no new cases
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object