public class EventBundleImpl extends Object implements EventBundle, Serializable
EventBundleImpl
implements a serializable EventBundle
.Constructor and Description |
---|
EventBundleImpl(Collection<Event> events,
boolean isLocal)
Creates a new event bundle with
events . |
Modifier and Type | Method and Description |
---|---|
Iterator<Event> |
getEvents()
Returns the events of this bundle.
|
boolean |
isLocal()
Returns
true if this event bundle is associated with a
change that was initiated by a local session info. |
Iterator<Event> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public EventBundleImpl(Collection<Event> events, boolean isLocal)
events
.events
- the events for this bundle.isLocal
- if this events were created due to a local change.public Iterator<Event> getEvents()
getEvents
in interface EventBundle
events
of this bundle.public boolean isLocal()
true
if this event bundle is associated with a
change that was initiated by a local session info. Event bundles for
external changes will aways return false
.isLocal
in interface EventBundle
true
if this event bundle is associated with a local
change, false
if this event bundle contains external
changes.Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.