|
PenProfile 2.x | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.livescribe.ext.util.LinkedList
public class LinkedList
LinkedList implements the standard Java SE class
| Constructor Summary | |
|---|---|
LinkedList()
|
|
LinkedList(Collection c)
|
|
LinkedList(Enumeration en)
|
|
LinkedList(Object[] o)
|
|
| Method Summary | |
|---|---|
void |
add(int index,
Object element)
Inserts supplied object at the specified index |
boolean |
add(Object o)
Adds object to the end of the list |
boolean |
addAll(Collection c)
Appends collection to the list |
boolean |
addAll(int index,
Collection c)
Adds collection at index |
void |
addFirst(Object o)
Inserts object in the beginning of the list |
void |
addLast(Object o)
Appends object to the end of list |
void |
clear()
Removes all objects from the list |
Object |
clone()
Produces a shallow copy of the list |
boolean |
contains(Object o)
Returns if the object exist in the list or not |
boolean |
containsAll(Collection c)
Returns true if the list contains all objects in the collection |
Object |
element()
Peeks at the first element |
boolean |
equals(Object o)
Equals implementation |
Object |
get(int index)
Gets the object at index |
Object |
getFirst()
Gets the first element |
Object |
getLast()
Gets the last (tail) element |
int |
indexOf(Object o)
Gets the index of the object. |
boolean |
isEmpty()
Returns true if this collection is empty |
Iterator |
iterator()
Gets an iterator to the list |
int |
lastIndexOf(Object o)
Returns the last occurrence of object in list. |
ListIterator |
listIterator()
Gets an iterator to the list |
ListIterator |
listIterator(int index)
Returns a ListIterator object to the list starting with object at index |
void |
offer(Object o)
Appends object to the end of list |
Object |
peek()
Peeks at the first element |
Object |
poll()
Removes the first object from the list |
Object |
remove()
Removes the first object from the list |
Object |
remove(int index)
Removes the object at index |
boolean |
remove(Object o)
Removes the first occurence of the object from the list |
boolean |
removeAll(Collection c)
Remove all objects in the list that is part of the collection |
Object |
removeFirst()
Removes the first object from the list |
Object |
removeLast()
Removes the last (tail) object from the list |
boolean |
retainAll(Collection c)
Removes all the objects in the list BUT the objects in the collection |
Object |
set(int index,
Object element)
Replace the object at index with the supplied object |
int |
size()
Returns the number of objects in the list |
void |
sort()
Sorts the elements. |
List |
subList(int fromIndex,
int toIndex)
Returns a new Sublist |
Object[] |
toArray()
Returns an array containing the objects in the list |
String |
toString()
Returns a string of this list |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.livescribe.ext.util.List |
|---|
hashCode |
| Constructor Detail |
|---|
public LinkedList()
public LinkedList(Collection c)
public LinkedList(Enumeration en)
public LinkedList(Object[] o)
| Method Detail |
|---|
public void add(int index,
Object element)
add in interface Listindex - element - public boolean add(Object o)
add in interface Collectionadd in interface Listo -
public boolean addAll(Collection c)
addAll in interface CollectionaddAll in interface Listc -
public boolean addAll(int index,
Collection c)
addAll in interface Listindex - c -
public boolean containsAll(Collection c)
containsAll in interface CollectioncontainsAll in interface Listpublic boolean isEmpty()
isEmpty in interface CollectionisEmpty in interface Listpublic boolean removeAll(Collection c)
removeAll in interface CollectionremoveAll in interface Listpublic boolean retainAll(Collection c)
retainAll in interface CollectionretainAll in interface Listpublic void addFirst(Object o)
o - public void addLast(Object o)
o - public void offer(Object o)
o - public void clear()
clear in interface Collectionclear in interface Listpublic Object clone()
clone in interface Cloneablepublic boolean contains(Object o)
contains in interface Collectioncontains in interface Listo -
public Object get(int index)
get in interface Listindex -
public Object getFirst()
public Object peek()
public Object element()
public Object getLast()
public int indexOf(Object o)
indexOf in interface Listo -
public int lastIndexOf(Object o)
lastIndexOf in interface Listpublic ListIterator listIterator(int index)
listIterator in interface Listindex -
public Object remove(int index)
remove in interface Listindex -
public boolean remove(Object o)
remove in interface Collectionremove in interface Listo -
public Object removeFirst()
public Object remove()
public Object poll()
public Object removeLast()
public Object set(int index,
Object element)
set in interface Listindex - element -
public int size()
size in interface Collectionsize in interface Listpublic Object[] toArray()
toArray in interface CollectiontoArray in interface Listpublic boolean equals(Object o)
equals in interface Collectionequals in interface Listequals in class Objecto - the reference object with which to compare.
true if this object is the same as the obj
argument; false otherwise.Boolean.hashCode(),
Hashtablepublic String toString()
toString in class Objectpublic Iterator iterator()
iterator in interface Collectioniterator in interface Listpublic ListIterator listIterator()
listIterator in interface List
public List subList(int fromIndex,
int toIndex)
subList in interface Listpublic void sort()
|
PenProfile 2.x | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||