/** * Appends the specified element to the end of this list. * * @param element element to be appended to this list. */ public void add(int element) { beforeInsert(size,element); } /**
/** * Appends the specified element to the end of this list. * * @param element element to be appended to this list. */ public void add(int element) { beforeInsert(size,element); } /**
/** * Appends the specified element to the end of this list. * * @param element * element to be appended to this list. */ public void add(int element) { beforeInsert(size, element); }
/** * Inserts the specified element at the specified position in this list * (optional operation). Shifts the element currently at that position * (if any) and any subsequent elements to the right (adds one to their * indices).<p> * * @param index index at which the specified element is to be inserted. * @param element element to be inserted. * * @throws ClassCastException if the class of the specified element * prevents it from being added to this list. * @throws IllegalArgumentException if some aspect of the specified * element prevents it from being added to this list. * @throws IndexOutOfBoundsException index is out of range (<tt>index < * 0 || index > size()</tt>). */ public void add(int index, Object element) { content.beforeInsert(index,value(element)); modCount++; } /**
/** * Inserts the specified element at the specified position in this list * (optional operation). Shifts the element currently at that position * (if any) and any subsequent elements to the right (adds one to their * indices).<p> * * @param index index at which the specified element is to be inserted. * @param element element to be inserted. * * @throws ClassCastException if the class of the specified element * prevents it from being added to this list. * @throws IllegalArgumentException if some aspect of the specified * element prevents it from being added to this list. * @throws IndexOutOfBoundsException index is out of range (<tt>index < * 0 || index > size()</tt>). */ public void add(int index, Object element) { content.beforeInsert(index,value(element)); modCount++; } /**