public class IntrusiveList
extends java.util.AbstractSequentialList
implements java.util.List
Although this implements java.util.List, it has a few restrictions:
| Modifier and Type | Class and Description |
|---|---|
static class |
IntrusiveList.Member
objects in an intrusive list must inherit from Member
|
| Constructor and Description |
|---|
IntrusiveList()
create a new list
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFirst(IntrusiveList.Member m)
add an object at the head of the list
|
void |
addLast(IntrusiveList.Member m)
add an object at the end of the list
|
java.util.ListIterator |
listIterator(int index)
return a ListIterator
|
void |
remove(IntrusiveList.Member m)
remove an object from the list
|
IntrusiveList.Member |
removeFirst()
remove the object at the head of the list
|
IntrusiveList.Member |
removeLast()
remove the object at the end of the list
|
int |
size()
return the number of elements in the list
|
add, addAll, get, iterator, remove, setadd, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, removeRange, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringpublic void addFirst(IntrusiveList.Member m)
public void addLast(IntrusiveList.Member m)
public void remove(IntrusiveList.Member m)
public IntrusiveList.Member removeFirst()
public IntrusiveList.Member removeLast()
public int size()
size in interface java.util.Collectionsize in interface java.util.Listsize in class java.util.AbstractCollectionpublic java.util.ListIterator listIterator(int index)
listIterator in interface java.util.ListlistIterator in class java.util.AbstractSequentialListCopyright © 2005-2012 Apache Software Foundation. All Rights Reserved.