inpro.incremental
Class IUModule.RightBuffer

java.lang.Object
  extended by inpro.incremental.IUModule.RightBuffer
Enclosing class:
IUModule

protected class IUModule.RightBuffer
extends java.lang.Object

Encapsulates the module's output in two representations. Modules should call either of the setBuffer methods in their implementation of leftBufferUpdate().

Author:
timo

Field Summary
(package private)  java.util.List<EditMessage<IU>> edits
           
(package private)  boolean hasUpdates
          true if the content has changed since the last call to notify
(package private)  IUList<IU> ius
           
 
Constructor Summary
protected IUModule.RightBuffer()
           
 
Method Summary
 void notify(java.util.List<PushBuffer> listeners)
           
 void notify(PushBuffer listener)
           
 void setBuffer(java.util.Collection<? extends IU> outputIUs)
           
 void setBuffer(java.util.Collection<? extends IU> outputIUs, java.util.List<? extends EditMessage<? extends IU>> outputEdits)
           
 void setBuffer(java.util.List<? extends EditMessage<? extends IU>> edits)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hasUpdates

boolean hasUpdates
true if the content has changed since the last call to notify


ius

IUList<IU> ius

edits

java.util.List<EditMessage<IU>> edits
Constructor Detail

IUModule.RightBuffer

protected IUModule.RightBuffer()
Method Detail

setBuffer

public void setBuffer(java.util.Collection<? extends IU> outputIUs)

setBuffer

public void setBuffer(java.util.List<? extends EditMessage<? extends IU>> edits)

setBuffer

public void setBuffer(java.util.Collection<? extends IU> outputIUs,
                      java.util.List<? extends EditMessage<? extends IU>> outputEdits)

notify

public void notify(PushBuffer listener)

notify

public void notify(java.util.List<PushBuffer> listeners)