Java Reference
In-Depth Information
Analogous to get(index) .
public final void copyInto(Object[] anArray)
No direct analogue; the closest is toArray(Object[]) , although
toArray allocates a new array if the array is too small, where
copyInto will throw an IndexOutOfBoundsException .
public final int indexOf(Object elem, int index)
Searches for the first occurrence of elem , beginning the search
at index , and testing for equality using equals . The closest ana-
logue would be to create a sublist covering the range and use
indexOf on the sublist.
public final int lastIndexOf(Object elem, int index)
Searches backward for the last occurrence of elem , beginning
the search at index , and testing for equality using equals . The
closest analogue would be to create a sublist covering the
range and use lastIndexOf on the sublist.
public final Enumeration<E> elements()
Analogous
to
iterator() .
Equivalent
to
Collec-
tions.enumeration .
public final E firstElement()
Analogous to get(0) .
public final E lastElement()
Analogous to get(size()- 1) .
public final void setSize(int newSize)
 
Search WWH ::




Custom Search