Lines Matching refs:size

45      * The number of elements or the size of the vector.
57 * negative the size will be doubled if an increase is needed.
111 this(collection.size(), 0);
119 private E[] newElementArray(int size) {
120 return (E[]) new Object[size];
126 * increasing their index by 1. If the location is equal to the size of this
134 * if {@code location < 0 || location > size()}.
136 * @see #size
164 * or higher than {@code location} have their index increased by the size of
173 * if {@code location < 0} or {@code location > size()}.
179 int size = collection.size();
180 if (size == 0) {
183 int required = size - (elementData.length - elementCount);
190 + size, count);
196 elementCount += size;
234 * @see #size
244 * @see #size
252 * Returns a new vector with the same elements, size, capacity and capacity
321 * if {@code location < 0 || location >= size()}.
322 * @see #size
396 if (list.size() != elementCount) {
421 * @see #size
438 * if {@code location < 0 || location >= size()}.
439 * @see #size
566 * equal to the size of this vector, the object is added at the end.
573 * if {@code location < 0 || location > size()}.
575 * @see #size
596 * Returns if this vector has no elements, a size of zero.
600 * @see #size
615 * @see #size
656 * if {@code location >= size()}.
690 * if {@code location < 0 || location >= size()}.
698 int size = elementCount - location;
699 if (size > 0) {
701 location, size);
722 * @see #size
745 * Removes all elements from this vector, leaving the size zero and the
749 * @see #size
771 * @see #size
790 * if {@code location < 0 || location >= size()}.
793 * @see #size
798 int size = elementCount - location;
799 if (size > 0) {
801 location, size);
821 * {@code end > size()}.
869 * if {@code location < 0 || location >= size()}.
870 * @see #size
892 * if {@code location < 0 || location >= size()}.
893 * @see #size
904 * Sets the size of this vector to the specified size. If there are more
910 * the new size of this vector.
911 * @see #size
933 public synchronized int size() {
948 * if {@code start < 0} or {@code end > size()}.
1030 * Sets the capacity of this vector to be the same as the size.
1034 * @see #size