public class ExposedNodeLinkedList extends Object implements List
LinkedNode| Constructor and Description |
|---|
ExposedNodeLinkedList()
Constructs an empty list.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
Object object) |
boolean |
add(Object object) |
boolean |
addAll(Collection collection) |
boolean |
addAll(int index,
Collection collection) |
LinkedNode |
addFirst(Object o)
Inserts the given contents at the beginning of this list.
|
LinkedNode |
addLast(Object o)
Appends the given contents to the end of this list.
|
void |
clear()
Removes all of the contents from this list.
|
boolean |
contains(Object o)
Returns true if this list contains the specified contents.
|
boolean |
containsAll(Collection collection) |
Object |
get(int index) |
Object |
getFirst()
Returns the first contents in this list.
|
Object |
getLast()
Returns the last contents in this list.
|
int |
indexOf(Object o)
Returns the index in this list of the first occurrence of the
specified contents, or -1 if the List does not contain this
contents.
|
boolean |
isEmpty() |
Iterator |
iterator() |
int |
lastIndexOf(Object object) |
ListIterator |
listIterator() |
ListIterator |
listIterator(int index) |
void |
moveFirst(LinkedNode node)
Allows a node to be efficiently moved first.
|
Object |
remove(int index) |
void |
remove(LinkedNode n)
Allows a node to be efficiently removed.
|
boolean |
remove(Object object) |
boolean |
removeAll(Collection collection) |
Object |
removeFirst()
Removes and returns the first contents from this list.
|
Object |
removeLast()
Removes and returns the last contents from this list.
|
boolean |
retainAll(Collection collection) |
Object |
set(int index,
Object value) |
int |
size()
Returns the number of contents in this list.
|
List |
subList(int start,
int end) |
Object[] |
toArray() |
Object[] |
toArray(Object[] array) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, replaceAll, sort, spliteratorparallelStream, removeIf, streampublic Object[] toArray(Object[] array)
toArray in interface CollectiontoArray in interface Listpublic Object[] toArray()
toArray in interface CollectiontoArray in interface Listpublic ListIterator listIterator(int index)
listIterator in interface Listpublic ListIterator listIterator()
listIterator in interface Listpublic Iterator iterator()
public boolean retainAll(Collection collection)
retainAll in interface CollectionretainAll in interface Listpublic boolean removeAll(Collection collection)
removeAll in interface CollectionremoveAll in interface Listpublic boolean containsAll(Collection collection)
containsAll in interface CollectioncontainsAll in interface Listpublic boolean addAll(Collection collection)
addAll in interface CollectionaddAll in interface Listpublic boolean addAll(int index,
Collection collection)
public boolean remove(Object object)
remove in interface Collectionremove in interface Listpublic boolean add(Object object)
add in interface Collectionadd in interface Listpublic int lastIndexOf(Object object)
lastIndexOf in interface Listpublic boolean isEmpty()
isEmpty in interface CollectionisEmpty in interface Listpublic Object getFirst()
public Object getLast()
public Object removeFirst()
NoSuchElementException - if this list is empty.public Object removeLast()
NoSuchElementException - if this list is empty.public LinkedNode addFirst(Object o)
o - the contents to be inserted at the beginning of this list.public LinkedNode addLast(Object o)
o - the contents to be inserted at the end of this list.public boolean contains(Object o)
contains in interface Collectioncontains in interface Listo - contents whose presence in this list is to be tested.public int size()
size in interface Collectionsize in interface Listpublic void clear()
clear in interface Collectionclear in interface Listpublic int indexOf(Object o)
public void remove(LinkedNode n)
public void moveFirst(LinkedNode node)
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference