org.apache.jackrabbit.spi.commons
Class EventBundleImpl

java.lang.Object
  extended by org.apache.jackrabbit.spi.commons.EventBundleImpl
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable<Event>, EventBundle

public class EventBundleImpl
extends java.lang.Object
implements EventBundle, java.io.Serializable

EventBundleImpl implements a serializable EventBundle.

See Also:
Serialized Form

Constructor Summary
EventBundleImpl(java.util.Collection<Event> events, boolean isLocal)
          Creates a new event bundle with events.
 
Method Summary
 java.util.Iterator<Event> getEvents()
          
 boolean isLocal()
          
 java.util.Iterator<Event> iterator()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventBundleImpl

public EventBundleImpl(java.util.Collection<Event> events,
                       boolean isLocal)
Creates a new event bundle with events.

Parameters:
events - the events for this bundle.
isLocal - if this events were created due to a local change.
Method Detail

getEvents

public java.util.Iterator<Event> getEvents()

Specified by:
getEvents in interface EventBundle

isLocal

public boolean isLocal()

Specified by:
isLocal in interface EventBundle

iterator

public java.util.Iterator<Event> iterator()

Specified by:
iterator in interface java.lang.Iterable<Event>


Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.