/** * Inserts the specified element at the specified position in this list. Shifts the element currently at that * position (if any) and any subsequent elements to the right (adds one to their indices). * * @param index index of element to add * @param element element to be stored at the specified position */ public void add(int index, ElementType element) { super.add(index, element); indexElement(element); }
/** * Inserts the specified element at the specified position in this list. Shifts the element currently at that * position (if any) and any subsequent elements to the right (adds one to their indices). * * @param index index of element to add * @param element element to be stored at the specified position */ public void add(int index, ElementType element) { super.add(index, element); indexElement(element); }