Home | History | Annotate | Download | only in collect

Lines Matching defs:toTrickle

391     E toTrickle = elementData(size);
393 MoveDesc<E> changes = fillHole(index, toTrickle);
398 return new MoveDesc<E>(actualLastElement, toTrickle);
409 private MoveDesc<E> fillHole(int index, E toTrickle) {
412 // with the last element of the heap, toTrickle.
416 // comparisons with toTrickle, but in some cases we will need to bubble it
419 // Try to see if toTrickle can be bubbled up min levels.
420 int bubbledTo = heap.bubbleUpAlternatingLevels(vacated, toTrickle);
422 // Could not bubble toTrickle up min levels, try moving
425 return heap.tryCrossOverAndBubbleUp(index, vacated, toTrickle);
428 ? new MoveDesc<E>(toTrickle, elementData(index))
435 final E toTrickle;
438 MoveDesc(E toTrickle, E replaced) {
439 this.toTrickle = toTrickle;
500 * Tries to move {@code toTrickle} from a min to a max level and
505 int removeIndex, int vacated, E toTrickle) {
506 int crossOver = crossOver(vacated, toTrickle);
513 // If toTrickle is moved up to a parent of removeIndex, the parent is
524 if (otherHeap.bubbleUpAlternatingLevels(crossOver, toTrickle)
526 return new MoveDesc<E>(toTrickle, parent);
794 forgetMeNot.add(moved.toTrickle);