|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
An immutable list interface, to allow safe distribution of this Collection. Users of the immutable list cannot make changes to the elements of the list.
MagiList| Method Summary | |
boolean |
contains(java.lang.Object o)
Returns true if this list contains the specified element. |
boolean |
containsAll(java.util.Collection c)
Returns true if this list contains all of the elements of the specified collection. |
boolean |
equals(java.lang.Object o)
Compares the specified object with this list for equality. |
java.lang.Object |
get(int index)
Returns the element at the specified position in this list. |
int |
hashCode()
Returns the hash code value for this list. |
int |
indexOf(java.lang.Object o)
Returns the index in this list of the first occurrence of the specified element, or -1 if this list does not contain this element. |
boolean |
isEmpty()
Returns true if this list contains no elements. |
java.util.Iterator |
iterator()
Returns an iterator over the elements in this list in proper sequence. |
int |
lastIndexOf(java.lang.Object o)
Returns the index in this list of the last occurrence of the specified element, or -1 if this list does not contain this element. |
java.util.ListIterator |
listIterator()
Returns a list iterator of the elements in this list (in proper sequence). |
java.util.ListIterator |
listIterator(int index)
Returns a list iterator of the elements in this list (in proper sequence), starting at the specified position in this list. |
int |
size()
Returns the number of elements in this list. |
java.util.List |
subList(int fromIndex,
int toIndex)
Returns a view of the portion of this list between the specified fromIndex, inclusive, and toIndex, exclusive. |
java.lang.Object[] |
toArray()
Returns an array containing all of the elements in this list in proper sequence. |
java.lang.Object[] |
toArray(java.lang.Object[] arr)
Returns an array containing all of the elements in this list in proper sequence, the runtime type of the returned array is that of the specified array. |
| Method Detail |
public boolean contains(java.lang.Object o)
o - Object to check if it exists in this List.
List.contains(Object)public boolean containsAll(java.util.Collection c)
c - the Collection to check if all elements exist.
List.containsAll(Collection)public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - Object to check for equality.
List.equals(Object)public java.lang.Object get(int index)
index - the index of Object to return.
List.get(int)public int hashCode()
hashCode in class java.lang.ObjectList.hashCode()public int indexOf(java.lang.Object o)
o - the Object to check index of.
List.indexOf(Object)public boolean isEmpty()
List.isEmpty()public java.util.Iterator iterator()
List.iterator()public int lastIndexOf(java.lang.Object o)
o - the Object to check the last index of.
List.lastIndexOf(Object)public java.util.ListIterator listIterator()
List.listIterator()public java.util.ListIterator listIterator(int index)
index - the index of where to start the list iterator.
List.listIterator(int)public int size()
List.size()
public java.util.List subList(int fromIndex,
int toIndex)
fromIndex - build the sub-list from this index.toIndex - build the sub-list to this index.
List.subList(int,int)public java.lang.Object[] toArray()
List.toArray()public java.lang.Object[] toArray(java.lang.Object[] arr)
arr - array type to return.
List.toArray(Object[])
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||