public T getEntryModSkip(int index, T store) { int total = data.getTotalObjectSize(); if (index == -1) { index--; } else if (index >= total) { index++; } index = mod(index, total); return data.get(index, store); } }
public T getEntryMod(int index, T store) { return data.get(mod(index, data.getTotalObjectSize()), store); }
public T getEntryClamp(int index, T store) { index = (int) FastMath.clamp(index, 0, data.getTotalObjectSize() - 1); return data.get(index, store); }