| java.util.AbstractList org.geotools.resources.UnmodifiableArrayList
UnmodifiableArrayList | public class UnmodifiableArrayList extends AbstractList implements Serializable(Code) | | An unmodifiable view of an array. Invoking
new UnmodifiableArrayList(array);
is equivalent to
(
(array)));
But this class provides a very slight performance improvement since it uses one less level
of indirection.
since: 2.1 version: $Id: UnmodifiableArrayList.java 23632 2006-12-29 22:13:51Z desruisseaux $ author: Martin Desruisseaux |
Method Summary | |
public boolean | contains(Object object) Returns
true if this collection contains the specified element. | public Object | get(int index) Returns the element at the specified index. | public int | indexOf(Object object) Returns the index in this list of the first occurence of the specified
element, or -1 if the list does not contain this element. | public int | lastIndexOf(Object object) Returns the index in this list of the last occurence of the specified
element, or -1 if the list does not contain this element. | public int | size() Returns the list size. |
UnmodifiableArrayList | public UnmodifiableArrayList(Object[] array)(Code) | | Create a new instance of an array list.
The array given in argument is not cloned.
|
contains | public boolean contains(Object object)(Code) | | Returns
true if this collection contains the specified element.
This method is overridden only for performance reason (the default implementation
would work as well).
|
get | public Object get(int index)(Code) | | Returns the element at the specified index.
|
indexOf | public int indexOf(Object object)(Code) | | Returns the index in this list of the first occurence of the specified
element, or -1 if the list does not contain this element. This method
is overridden only for performance reason (the default implementation
would work as well).
|
lastIndexOf | public int lastIndexOf(Object object)(Code) | | Returns the index in this list of the last occurence of the specified
element, or -1 if the list does not contain this element. This method
is overridden only for performance reason (the default implementation
would work as well).
|
size | public int size()(Code) | | Returns the list size.
|
Fields inherited from java.util.AbstractList | protected transient int modCount(Code)(Java Doc)
|
|
|