| |
|
| java.lang.Object org.jgroups.util.List org.jgroups.util.BoundedList
BoundedList | public class BoundedList extends List (Code) | | A bounded subclass of List, oldest elements are removed once max capacity is exceeded
author: Bela Ban Nov 20, 2003 version: $Id: BoundedList.java,v 1.2 2004/07/26 15:23:26 belaban Exp $ |
max_capacity | int max_capacity(Code) | | |
BoundedList | public BoundedList()(Code) | | |
BoundedList | public BoundedList(int size)(Code) | | |
add | public void add(Object obj)(Code) | | Adds an element at the tail. Removes an object from the head if capacity is exceeded
Parameters: obj - The object to be added |
addAtHead | public void addAtHead(Object obj)(Code) | | Adds an object to the head, removes an element from the tail if capacity has been exceeded
Parameters: obj - The object to be added |
|
|
|