|
jAER project on SourceForge | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jaer.eventprocessing.tracking.LIFOEventBuffer<E>
public final class LIFOEventBuffer<E extends BasicEvent>
A circular buffer of events with methods for adding new events and getting back old ones in the order of addition, last in is first out.
| Constructor Summary | |
|---|---|
LIFOEventBuffer(E[] array)
Make a new instance of LIFOPolarityEventBuffer |
|
| Method Summary | |
|---|---|
void |
add(E e)
Adds an event to the end of the list. |
int |
capacity()
Returns the capacity |
void |
clear()
Resets the pointers and empties the size |
java.util.Iterator<E> |
iterator()
Returns the iterator over events. |
int |
size()
Returns the number of events presently stored. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LIFOEventBuffer(E[] array)
array - the array of objects holding the events| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic final void add(E e)
e - the eventpublic void clear()
public int size()
public int capacity()
public final java.util.Iterator<E> iterator()
iterator in interface java.lang.Iterable<E extends BasicEvent>
|
jAER project on SourceForge | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||