Lines Matching defs:object

101         public void add(E object) {
104 AbstractList.this.add(pos + 1, object);
144 public void set(E object) {
147 AbstractList.this.set(lastPosition, object);
190 public void add(E object) {
191 iterator.add(object);
236 public void set(E object) {
237 iterator.set(object);
250 public void add(int location, E object) {
253 fullList.add(location + offset, object);
351 public E set(int location, E object) {
354 return fullList.set(location + offset, object);
387 * Inserts the specified object into this List at the specified location.
388 * The object is inserted before any previous element at the specified
389 * location. If the location is equal to the size of this List, the object
397 * @param object
398 * the object to add.
403 * if the class of the object is inappropriate for this
406 * if the object cannot be added to this List
410 public void add(int location, E object) {
415 * Adds the specified object at the end of this List.
418 * @param object
419 * the object to add
425 * if the class of the object is inappropriate for this
428 * if the object cannot be added to this List
431 public boolean add(E object) {
432 add(size(), object);
449 * if the class of an object is inappropriate for this list.
451 * if an object cannot be added to this list.
477 * Compares the specified object to this list and return true if they are
481 * @param object
482 * the object to compare to this object.
483 * @return {@code true} if the specified object is equal to this list,
488 public boolean equals(Object object) {
489 if (this == object) {
492 if (object instanceof List) {
493 List<?> list = (List<?>) object;
534 Object object = it.next();
535 result = (31 * result) + (object == null ? 0 : object.hashCode());
541 * Searches this list for the specified object and returns the index of the
544 * @param object
545 * the object to search for.
546 * @return the index of the first occurrence of the object, or -1 if it was
549 public int indexOf(Object object) {
551 if (object != null) {
553 if (object.equals(it.next())) {
580 * Searches this list for the specified object and returns the index of the
583 * @param object
584 * the object to search for.
585 * @return the index of the last occurrence of the object, or -1 if the
586 * object was not found.
588 public int lastIndexOf(Object object) {
590 if (object != null) {
592 if (object.equals(it.previous())) {
634 * Removes the object at the specified location from this list.
637 * the index of the object to remove.
638 * @return the removed object.
671 * specified object.
674 * the index at which to put the specified object.
675 * @param object
676 * the object to add.
681 * if the class of an object is inappropriate for this list.
683 * if an object cannot be added to this list.
687 public E set(int location, E object) {