|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.util.ConstList
public class ConstList
This provides a constant interface to a list, where "constant" means that elements can't be added or removed from the list. They can, however, be set to different elements.
Field Summary | |
---|---|
protected LinkedList<Object> |
list
|
Constructor Summary | |
---|---|
ConstList()
|
|
ConstList(LinkedList<Object> list)
|
Method Summary | |
---|---|
Object |
clone()
|
boolean |
contains(Object o)
Returns true if this list contains the specified element. |
boolean |
containsAll(Collection c)
Returns true if this list contains all of the elements of the specified collection. |
boolean |
equals(Object o)
Compares the specified object with this list for equality. |
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(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. |
Iterator<Object> |
iterator()
Returns an iterator over the elements in this list in proper sequence. |
int |
lastIndexOf(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. |
ListIterator<Object> |
listIterator()
Returns a list iterator of the elements in this list (in proper sequence). |
ListIterator<Object> |
listIterator(int index)
Returns a list iterator of the elements in this list (in proper sequence), starting at the specified position in this list. |
Object |
set(int index,
Object element)
Replaces the element at the specified position in this list with the specified element (optional operation). |
int |
size()
Returns the number of elements in this list. |
Object[] |
toArray()
Returns an array containing all of the elements in this list in proper sequence. |
Object[] |
toArray(Object[] a)
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. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected LinkedList<Object> list
Constructor Detail |
---|
public ConstList()
public ConstList(LinkedList<Object> list)
Method Detail |
---|
public boolean contains(Object o)
public boolean containsAll(Collection c)
public boolean equals(Object o)
equals
in class Object
public Object get(int index)
public int hashCode()
hashCode
in class Object
public int indexOf(Object o)
public boolean isEmpty()
public Iterator<Object> iterator()
public int lastIndexOf(Object o)
public ListIterator<Object> listIterator()
public ListIterator<Object> listIterator(int index)
public Object set(int index, Object element)
public int size()
public Object[] toArray()
public Object[] toArray(Object[] a)
public Object clone()
clone
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |