T - The type of the listpublic class SliceCalculator<T>
extends java.lang.Object
| Constructor and Description |
|---|
SliceCalculator(java.util.List<T> list,
int sliceSize) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<T> |
getList() |
java.util.List<T> |
getSlice(int sliceIndex)
Get a slice of the list.
|
int |
getSliceCount() |
public SliceCalculator(java.util.List<T> list, int sliceSize)
public java.util.List<T> getList()
public int getSliceCount()
public java.util.List<T> getSlice(int sliceIndex)
sliceIndex - The index of the slicejava.lang.IndexOutOfBoundsException - If the slice index is out of bounds