TypeEstimator<int[]>public class IntArrayEstimator extends Object implements TypeEstimator<int[]>
This class can be used to perform type interpolation between int[] values.
Each index into the array is treated as a separate value to interpolate.
| 构造器 | 说明 |
|---|---|
IntArrayEstimator() |
Create a IntArrayEstimator.
|
IntArrayEstimator(int[] lastingArray) |
Create a IntArrayEstimator that reuses
lastingArray for every estimate() call. |
public IntArrayEstimator()
IntArrayEstimator(int[])public IntArrayEstimator(int[] lastingArray)
lastingArray for every estimate() call.lastingArray - The array to modify and return from estimate.public int[] estimate(float progress,
int[] startKeyValue,
int[] endKeyValue)
IntArrayEstimator(int[])
was used to construct this object, reuseArray will be returned, otherwise
a new int[] will be returned.estimate 在接口中 TypeEstimator<int[]>progress - The progress from the starting to the ending valuesstartKeyValue - The start value.endKeyValue - The end value.int[] where each element is an interpolation between
the same index in startKeyValue and endKeyValue.