Lines Matching defs:index

62  * In the figure, the first index (0) corresponds to the first column,
63 * the second index (1) to the second column, and so on.
88 * and <code>setSize(index, size)</code>.
91 * If sizes are stored, finding the index of the entry
94 * the size of an entry at a particular index requires updating
255 * <p>Note that if <code>index</code> is greater than
259 * @param index the index of the entry whose position is desired
262 public int getPosition(int index) {
263 return getPosition(0, a.length, index);
266 private int getPosition(int from, int to, int index) {
271 if (index <= m) {
272 return getPosition(from, m, index);
275 return a[m] + getPosition(m + 1, to, index);
280 * Returns the index of the entry
286 * @return the index of the entry that occupies the specified position
308 * If <code>index</code> is out of the range
309 * <code>(0 <= index < getSizes().length)</code>
312 * @param index the index corresponding to the entry
315 public int getSize(int index) {
316 return getPosition(index + 1) - getPosition(index);
321 * Note that if the value of <code>index</code>
323 * <code>(0 <= index < getSizes().length)</code>
326 * @param index the index corresponding to the entry
329 public void setSize(int index, int size) {
330 changeSize(0, a.length, index, size - getSize(index));
333 private void changeSize(int from, int to, int index, int delta) {
338 if (index <= m) {
340 changeSize(from, m, index, delta);
343 changeSize(m + 1, to, index, delta);
356 * @param start the index to be assigned to the first entry
391 * @param start the index of the first entry to be removed