|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
com.tangosol.util.SafeLinkedList
com.tangosol.util.RecyclingLinkedList
public class RecyclingLinkedList
Extends SafeLinkedList and adds recycling of Node objects.
Nested Class Summary | |
---|---|
protected class |
RecyclingLinkedList.Node
A Node in the List. |
Field Summary | |
---|---|
protected static int |
DEFAULT_RECYCLE_MAX
The default maximum number of Nodes to recycle. |
protected RecyclingLinkedList.Node[] |
m_anodeRecycled
The Nodes to recycle. |
protected int |
m_cRecycleMax
The maximum number of Nodes to recycle. |
protected int |
m_cRecycleNodes
The current number of Nodes being recycle. |
Fields inherited from class com.tangosol.util.SafeLinkedList |
---|
m_cNodes, m_current, m_head, m_iPos, m_tail |
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
RecyclingLinkedList()
Construct an empty List. |
|
RecyclingLinkedList(Collection collection)
Construct a List containing the elements of the specified Collection. |
|
RecyclingLinkedList(Collection collection,
int cMaxRecycle)
Construct a List containing the elements of the specified Collection. |
|
RecyclingLinkedList(int cMaxRecycle)
Construct an empty List. |
Method Summary | |
---|---|
Object |
clone()
Create a deep clone of the list. |
protected void |
initRecycling(int cMaxRecycle)
Initializing the recycling data structures. |
protected SafeLinkedList.Node |
instantiateNode(Object o)
Instantiate a Node. |
protected void |
recycleNode(RecyclingLinkedList.Node node)
Recycle the passed Node. |
Methods inherited from class com.tangosol.util.SafeLinkedList |
---|
add, add, addAll, addAll, clear, contains, containsAll, get, getNode, indexOf, lastIndexOf, main, markPosition, remove, remove, reset, set, size, toArray, toArray |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode, iterator, listIterator, listIterator, removeRange, subList |
Methods inherited from class java.util.AbstractCollection |
---|
isEmpty, removeAll, retainAll, toString |
Methods inherited from interface java.util.List |
---|
equals, hashCode, isEmpty, iterator, listIterator, listIterator, removeAll, retainAll, subList |
Field Detail |
---|
protected transient RecyclingLinkedList.Node[] m_anodeRecycled
protected transient int m_cRecycleNodes
protected int m_cRecycleMax
protected static final int DEFAULT_RECYCLE_MAX
Constructor Detail |
---|
public RecyclingLinkedList()
public RecyclingLinkedList(int cMaxRecycle)
cMaxRecycle
- the maximum number of Nodes to recycle at any
given timepublic RecyclingLinkedList(Collection collection)
collection
- the Collection to fill this List frompublic RecyclingLinkedList(Collection collection, int cMaxRecycle)
collection
- the Collection to fill this List fromcMaxRecycle
- the maximum number of Nodes to recycle at any
given timeMethod Detail |
---|
protected void initRecycling(int cMaxRecycle)
cMaxRecycle
- the maximum number of Nodes to recycle at any
given timeprotected SafeLinkedList.Node instantiateNode(Object o)
instantiateNode
in class SafeLinkedList
o
- the value for the Nodeprotected void recycleNode(RecyclingLinkedList.Node node)
node
- the Node object to recyclepublic Object clone()
clone
in class SafeLinkedList
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |