T - The type of the list elements.public class SliceCalculation<T>
extends java.lang.Object
| Constructor and Description |
|---|
SliceCalculation(java.util.List<T> elements,
int sliceSize) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<T> |
getSlice(int sliceIndex)
Returns the slice at the given index.
|
int |
getSliceCount() |
static int |
getSliceCount(int size,
int sliceSize)
Returns the number of slices for the given size and slice size.
|
public SliceCalculation(java.util.List<T> elements, int sliceSize)
public int getSliceCount()
public java.util.List<T> getSlice(int sliceIndex)
sliceIndex - The index of the slice.public static int getSliceCount(int size,
int sliceSize)
size - The size.sliceSize - The slice size.