public class PriorEventViewRelAccess extends Object implements RelativeAccessByEventNIndex
Constructor and Description |
---|
PriorEventViewRelAccess(RelativeAccessByEventNIndex buffer,
int relativeIndex)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
EventBean |
getRelativeToEnd(int index) |
EventBean |
getRelativeToEvent(EventBean theEvent,
int prevIndex)
Returns the prior event to the given event counting back the number of events as supplied by index.
|
Iterator<EventBean> |
getWindowToEvent() |
Collection<EventBean> |
getWindowToEventCollReadOnly() |
int |
getWindowToEventCount() |
public PriorEventViewRelAccess(RelativeAccessByEventNIndex buffer, int relativeIndex)
buffer
- is the buffer to accesrelativeIndex
- is the index to pull outpublic EventBean getRelativeToEvent(EventBean theEvent, int prevIndex)
RelativeAccessByEventNIndex
getRelativeToEvent
in interface RelativeAccessByEventNIndex
theEvent
- is the event to count back fromprevIndex
- is the number of events to go backpublic EventBean getRelativeToEnd(int index)
getRelativeToEnd
in interface RelativeAccessByEventNIndex
public Iterator<EventBean> getWindowToEvent()
getWindowToEvent
in interface RelativeAccessByEventNIndex
public Collection<EventBean> getWindowToEventCollReadOnly()
getWindowToEventCollReadOnly
in interface RelativeAccessByEventNIndex
public int getWindowToEventCount()
getWindowToEventCount
in interface RelativeAccessByEventNIndex