Lines Matching defs:object

124      * Adds the specified object into this vector at the specified location. The
125 * object is inserted before any element with the same or a higher index
127 * vector, the object is added at the end.
131 * @param object
132 * the object to insert in this vector.
139 public void add(int location, E object) {
140 insertElementAt(object, location);
144 * Adds the specified object at the end of this vector.
146 * @param object
147 * the object to add to the vector.
151 public synchronized boolean add(E object) {
155 elementData[elementCount++] = object;
216 * Adds the specified object at the end of this vector.
218 * @param object
219 * the object to add to the vector.
221 public synchronized void addElement(E object) {
225 elementData[elementCount++] = object;
271 * Searches this vector for the specified object.
273 * @param object
274 * the object to look for in this vector.
275 * @return {@code true} if object is an element of this vector,
282 public boolean contains(Object object) {
283 return indexOf(object, 0) != -1;
379 * Compares the specified object to this vector and returns if they are
380 * equal. The object must be a List which contains the same objects in the
383 * @param object
384 * the object to compare with this object
385 * @return {@code true} if the specified object is equal to this vector,
390 public synchronized boolean equals(Object object) {
391 if (this == object) {
394 if (object instanceof List) {
395 List<?> list = (List<?>) object;
510 * Searches in this vector for the index of the specified object. The search
511 * for the object starts at the beginning and moves towards the end of this
514 * @param object
515 * the object to find in this vector.
523 public int indexOf(Object object) {
524 return indexOf(object, 0);
528 * Searches in this vector for the index of the specified object. The search
529 * for the object starts at the specified location and moves towards the end
532 * @param object
533 * the object to find in this vector.
544 public synchronized int indexOf(Object object, int location) {
545 if (object != null) {
547 if (object.equals(elementData[i])) {
562 * Inserts the specified object into this vector at the specified location.
563 * This object is inserted before any previous element at the specified
566 * equal to the size of this vector, the object is added at the end.
568 * @param object
569 * the object to insert in this vector.
577 public synchronized void insertElementAt(E object, int location) {
587 elementData[location] = object;
627 * Searches in this vector for the index of the specified object. The search
628 * for the object starts at the end and moves towards the start of this
631 * @param object
632 * the object to find in this vector.
640 public synchronized int lastIndexOf(Object object) {
641 return lastIndexOf(object, elementCount - 1);
645 * Searches in this vector for the index of the specified object. The search
646 * for the object starts at the specified location and moves towards the
649 * @param object
650 * the object to find in this vector.
661 public synchronized int lastIndexOf(Object object, int location) {
663 if (object != null) {
665 if (object.equals(elementData[i])) {
682 * Removes the object at the specified location from this vector. All
687 * the index of the object to remove.
688 * @return the removed object.
712 * towards the end, of the specified object from this vector. All elements
716 * @param object
717 * the object to remove from this vector.
718 * @return {@code true} if the specified object was found, {@code false}
725 public boolean remove(Object object) {
726 return removeElement(object);
730 * Removes all occurrences in this vector of each object in the specified
761 * towards the end, of the specified object from this vector. All elements
765 * @param object
766 * the object to remove from this vector.
767 * @return {@code true} if the specified object was found, {@code false}
773 public synchronized boolean removeElement(Object object) {
775 if ((index = indexOf(object, 0)) == -1) {
861 * specified object.
864 * the index at which to put the specified object.
865 * @param object
866 * the object to add to this vector.
874 public synchronized E set(int location, E object) {
877 elementData[location] = object;
885 * specified object.
887 * @param object
888 * the object to add to this vector.
890 * the index at which to put the specified object.
895 public synchronized void setElementAt(E object, int location) {
897 elementData[location] = object;