net.customware.gwt.dispatch.shared
Class AbstractUpdateResult<T>

java.lang.Object
  extended by net.customware.gwt.dispatch.shared.AbstractUpdateResult<T>
Type Parameters:
T - The value type.
All Implemented Interfaces:
java.io.Serializable, Result

public abstract class AbstractUpdateResult<T>
extends java.lang.Object
implements Result

Provides support for simple update response which contain both the old value and new value.

Author:
David Peterson
See Also:
Serialized Form

Constructor Summary
protected AbstractUpdateResult()
          For serialization support only.
  AbstractUpdateResult(T oldValue, T newValue)
           
 
Method Summary
 T getNew()
          The new/current value.
 T getOld()
          The previous value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractUpdateResult

protected AbstractUpdateResult()
For serialization support only. Subclasses should provide an package-local (aka default) empty constructor.


AbstractUpdateResult

public AbstractUpdateResult(T oldValue,
                            T newValue)
Method Detail

getOld

public T getOld()
The previous value.

Returns:
The old value.

getNew

public T getNew()
The new/current value.

Returns:
The new value.


Copyright © 2009 customware.net. All Rights Reserved.