|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
org.geotools.resources.UnmodifiableArrayList
An unmodifiable view of an array. Invoking
new UnmodifiableArrayList(array);
is equivalent to
Collections.unmodifiableList(Arrays.asList(array)));
But this class provides a very slight performance improvement since it uses one less level
of indirection.
| Field Summary |
| Fields inherited from class java.util.AbstractList |
modCount |
| Constructor Summary | |
UnmodifiableArrayList(java.lang.Object[] array)
Create a new instance of an array list. |
|
| Method Summary | |
boolean |
contains(java.lang.Object object)
Returns if this collection contains the specified element. |
java.lang.Object |
get(int index)
Returns the element at the specified index. |
int |
indexOf(java.lang.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. |
int |
lastIndexOf(java.lang.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. |
int |
size()
Returns the list size. |
| Methods inherited from class java.util.AbstractList |
add, add, addAll, clear, equals, hashCode, iterator, listIterator, listIterator, remove, removeRange, set, subList |
| Methods inherited from class java.util.AbstractCollection |
addAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
addAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
| Constructor Detail |
public UnmodifiableArrayList(java.lang.Object[] array)
| Method Detail |
public int size()
size in interface java.util.Listpublic java.lang.Object get(int index)
get in interface java.util.Listpublic int indexOf(java.lang.Object object)
indexOf in interface java.util.Listpublic int lastIndexOf(java.lang.Object object)
lastIndexOf in interface java.util.Listpublic boolean contains(java.lang.Object object)
contains in interface java.util.List
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||