public class DatasetUtils
extends java.lang.Object
| Constructor and Description |
|---|
DatasetUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
safeIdx(int value,
int endIndex)
Safe handling of out of bound index requests - returns
index requested if 0 < value < endIndex, 0 if value < 0, endIndex - 1 otherwise
|
public static int safeIdx(int value,
int endIndex)
value - proposed indexendIndex - upper limit of valid index values