public class PriorEventViewRelAccess extends java.lang.Object implements RelativeAccessByEventNIndex
Constructor and Description |
---|
PriorEventViewRelAccess(RelativeAccessByEventNIndex buffer,
int relativeIndex)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
EventBean |
getRelativeToEnd(EventBean theEvent,
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.
|
java.util.Iterator<EventBean> |
getWindowToEvent(java.lang.Object evalEvent) |
java.util.Collection<EventBean> |
getWindowToEventCollReadOnly(java.lang.Object evalEvent) |
int |
getWindowToEventCount(EventBean evalEvent) |
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(EventBean theEvent, int index)
getRelativeToEnd
in interface RelativeAccessByEventNIndex
public java.util.Iterator<EventBean> getWindowToEvent(java.lang.Object evalEvent)
getWindowToEvent
in interface RelativeAccessByEventNIndex
public java.util.Collection<EventBean> getWindowToEventCollReadOnly(java.lang.Object evalEvent)
getWindowToEventCollReadOnly
in interface RelativeAccessByEventNIndex
public int getWindowToEventCount(EventBean evalEvent)
getWindowToEventCount
in interface RelativeAccessByEventNIndex