net.esper.view.internal
Class PriorEventViewFactory.RelativeAccessImpl
java.lang.Object
net.esper.view.internal.PriorEventViewFactory.RelativeAccessImpl
- All Implemented Interfaces:
- RelativeAccessByEventNIndex
- Enclosing class:
- PriorEventViewFactory
public static class PriorEventViewFactory.RelativeAccessImpl
- extends Object
- implements RelativeAccessByEventNIndex
Adapter to provide access given an index.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PriorEventViewFactory.RelativeAccessImpl
public PriorEventViewFactory.RelativeAccessImpl(RelativeAccessByEventNIndex buffer,
int relativeIndex)
- Ctor.
- Parameters:
buffer
- is the buffer to accesrelativeIndex
- is the index to pull out
getRelativeToEvent
public EventBean getRelativeToEvent(EventBean event,
int prevIndex)
- Description copied from interface:
RelativeAccessByEventNIndex
- Returns the prior event to the given event counting back the number of events as supplied by index.
- Specified by:
getRelativeToEvent
in interface RelativeAccessByEventNIndex
- Parameters:
event
- is the event to count back fromprevIndex
- is the number of events to go back
- Returns:
- event