Package net.bmahe.genetics4j.core.util
Class MultiIntCounter
java.lang.Object
net.bmahe.genetics4j.core.util.MultiIntCounter
-
Field Summary
Modifier and TypeFieldDescription(package private) final int[]
(package private) final int[]
-
Constructor Summary
-
Method Summary
-
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() -
equals
-
toString
-