public class CyclicIndex extends Object
Constructor and Description |
---|
CyclicIndex() |
Modifier and Type | Method and Description |
---|---|
void |
ensureWithinBounds(Object[] elements) |
<T> T |
getNextElement(T[] elements)
Reads the element and increments the internal index afterwards.
|
public <T> T getNextElement(T[] elements)
elements
- elementspublic void ensureWithinBounds(Object[] elements)
Copyright © 2015–2020. All rights reserved.