/** * Swap the position of two children. * * @param index1 Index of the first child. * @param index2 Index of the second child. */ public void swapChildren(int index1, int index2) { children.swap(index1, index2); }
/** * Swap the position of two children. * * @param index1 Index of the first child. * @param index2 Index of the second child. */ public void swapChildren(int index1, int index2) { children.swap(index1, index2); }