|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jikesrvm.util.LinkedListRVM<T>
public final class LinkedListRVM<T>
Implementation of java.util.LinkedList for use in classes that end up in the boot image.
| Nested Class Summary | |
|---|---|
(package private) static class |
LinkedListRVM.Element<T>
Class for the actual elements of the list. |
| Field Summary | |
|---|---|
private int |
count
Element count |
(package private) LinkedListRVM.Element<T> |
head
pointer to first element in the list |
(package private) LinkedListRVM.Element<T> |
tail
pointer to last element in the list |
| Constructor Summary | |
|---|---|
LinkedListRVM()
|
|
| Method Summary | ||
|---|---|---|
void |
add(int pos,
T entry)
Insert an element at a given position in the list. |
|
boolean |
add(T entry)
Insert at the tail of the list |
|
boolean |
addAll(Collection<? extends T> arg0)
Add all members of the given collection. |
|
boolean |
addAll(int arg0,
Collection<? extends T> arg1)
Add all members of the given collection after the given element. |
|
void |
clear()
Discard all entries in the list |
|
boolean |
contains(Object arg0)
Membership test |
|
boolean |
containsAll(Collection<?> arg0)
Set inclusion test |
|
T |
get(int index)
Return the nth element of the list UNIMPLEMENTED |
|
int |
indexOf(Object arg0)
Return the position of the given element. |
|
(package private) void |
insertAfter(LinkedListRVM.Element<T> e,
T t)
Insert an entry after the given element. |
|
boolean |
isEmpty()
|
|
Iterator<T> |
iterator()
|
|
int |
lastIndexOf(Object arg0)
UNIMPLEMENTED |
|
ListIterator<T> |
listIterator()
|
|
ListIterator<T> |
listIterator(int arg0)
UNIMPLEMENTED |
|
T |
remove(int index)
Remove the nth element of the list. |
|
boolean |
remove(Object arg0)
Remove the given element from the list |
|
boolean |
removeAll(Collection<?> arg0)
UNIMPLEMENTED |
|
(package private) void |
removeInternal(LinkedListRVM.Element<T> e)
|
|
boolean |
retainAll(Collection<?> arg0)
UNIMPLEMENTED |
|
T |
set(int arg0,
T arg1)
UNIMPLEMENTED |
|
int |
size()
|
|
List<T> |
subList(int arg0,
int arg1)
UNIMPLEMENTED |
|
Object[] |
toArray()
UNIMPLEMENTED |
|
|
toArray(U[] arg0)
UNIMPLEMENTED |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
equals, hashCode |
| Field Detail |
|---|
private int count
LinkedListRVM.Element<T> head
LinkedListRVM.Element<T> tail
| Constructor Detail |
|---|
public LinkedListRVM()
| Method Detail |
|---|
public void add(int pos,
T entry)
UNIMPLEMENTED
add in interface List<T>pos - Position in the list (0..size()-1)entry - Element to insertpublic boolean add(T entry)
add in interface Collection<T>add in interface List<T>entry - The entry to add.
void insertAfter(LinkedListRVM.Element<T> e,
T t)
e - List elementt - New list entrypublic boolean addAll(Collection<? extends T> arg0)
UNIMPLEMENTED
addAll in interface Collection<T>addAll in interface List<T>
public boolean addAll(int arg0,
Collection<? extends T> arg1)
UNIMPLEMENTED
addAll in interface List<T>public void clear()
clear in interface Collection<T>clear in interface List<T>public boolean contains(Object arg0)
contains in interface Collection<T>contains in interface List<T>arg0 - Object to check
public boolean containsAll(Collection<?> arg0)
containsAll in interface Collection<T>containsAll in interface List<T>arg0 - Objects to check
public T get(int index)
UNIMPLEMENTED
get in interface List<T>index - public int indexOf(Object arg0)
indexOf in interface List<T>arg0 - Member to test for.
public boolean isEmpty()
isEmpty in interface Collection<T>isEmpty in interface List<T>public Iterator<T> iterator()
iterator in interface Iterable<T>iterator in interface Collection<T>iterator in interface List<T>public int lastIndexOf(Object arg0)
lastIndexOf in interface List<T>public ListIterator<T> listIterator()
listIterator in interface List<T>public ListIterator<T> listIterator(int arg0)
listIterator in interface List<T>public T remove(int index)
remove in interface List<T>index - n
public boolean remove(Object arg0)
remove in interface Collection<T>remove in interface List<T>void removeInternal(LinkedListRVM.Element<T> e)
public boolean removeAll(Collection<?> arg0)
removeAll in interface Collection<T>removeAll in interface List<T>public boolean retainAll(Collection<?> arg0)
retainAll in interface Collection<T>retainAll in interface List<T>
public T set(int arg0,
T arg1)
set in interface List<T>public int size()
size in interface Collection<T>size in interface List<T>
public List<T> subList(int arg0,
int arg1)
subList in interface List<T>public Object[] toArray()
toArray in interface Collection<T>toArray in interface List<T>public <U> U[] toArray(U[] arg0)
toArray in interface Collection<T>toArray in interface List<T>
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||