public class ActivityList extends AbstractList<ActivityEvent> implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ActivityList.TL
An activity list that allows for thread-safe logging.
|
modCount
Constructor and Description |
---|
ActivityList() |
Modifier and Type | Method and Description |
---|---|
ActivityEvent |
get(int index) |
void |
log(ActivityEvent e)
Inserts a new event at the beginning of this list.
|
int |
size() |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
public ActivityList()
public void log(ActivityEvent e)
e
- event to be inserted; or null, to insert no eventpublic final int size()
size
in interface Collection<ActivityEvent>
size
in interface List<ActivityEvent>
size
in class AbstractCollection<ActivityEvent>
public final ActivityEvent get(int index)
get
in interface List<ActivityEvent>
get
in class AbstractList<ActivityEvent>