|
AXL RADIUS Server API V3 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
ObjectAbstractCollection
AbstractList
ArrayList
CircularList
Class to hold a circular list. The contents are returned by the next() method. Note that this implementation is not synchronized. If multiple threads access the CircularList instance concurrently, and at least one of the threads modifies the list structurally, it must be synchronized externally. (A structural modification is any operation that adds or deletes one or more elements, or explicitly resizes the backing array; merely setting the value of an element is not a structural modification.) This is typically accomplished by synchronizing on some object that naturally encapsulates the list. If no such object exists, the list should be "wrapped" using the Collections.synchronizedList method. This is best done at creation time, to prevent accidental unsynchronized access to the list:
List list = Collections.synchronizedList(new CircularList(...));
| Constructor Summary | |
CircularList()
Constructs an empty list with an initial capacity of ten. |
|
CircularList(Collection c)
Constructs a list containing the elements of the specified collection, in the order they are returned by the collection's iterator. |
|
CircularList(int initialCapacity)
|
|
| Method Summary | |
Object |
next()
Get the next object in the circular list. |
| Methods inherited from class ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, set, size, toArray, toArray, trimToSize |
| Methods inherited from class AbstractList |
equals, hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class AbstractCollection |
containsAll, remove, removeAll, retainAll, toString |
| Methods inherited from class Object |
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface List |
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList |
| Constructor Detail |
public CircularList()
public CircularList(Collection c)
c - The collection whose elements are to be placed into this list.public CircularList(int initialCapacity)
initialCapacity - The initial capacity of the list.| Method Detail |
public Object next()
|
AXL RADIUS Server API V3 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||