net.esper.view.internal
Class PriorEventViewFactory.RelativeAccessImpl

java.lang.Object
  extended by 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.


Constructor Summary
PriorEventViewFactory.RelativeAccessImpl(RelativeAccessByEventNIndex buffer, int relativeIndex)
          Ctor.
 
Method Summary
 EventBean getRelativeToEvent(EventBean event, int prevIndex)
          Returns the prior event to the given event counting back the number of events as supplied by index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PriorEventViewFactory.RelativeAccessImpl

public PriorEventViewFactory.RelativeAccessImpl(RelativeAccessByEventNIndex buffer,
                                                int relativeIndex)
Ctor.

Parameters:
buffer - is the buffer to acces
relativeIndex - is the index to pull out
Method Detail

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 from
prevIndex - is the number of events to go back
Returns:
event

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com