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

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

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

A common use-case is returning a single value from an action. This provides a simple, type-safe superclass for such results.

Note: Subclasses should provide both an empty constructor for serialization and a constructor with a single value for normal use. It is recommended that the empty constructor is private or package-private.

Author:
David Peterson
See Also:
Serialized Form

Constructor Summary
protected AbstractSimpleResult()
           
  AbstractSimpleResult(T value)
           
 
Method Summary
 T get()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSimpleResult

protected AbstractSimpleResult()

AbstractSimpleResult

public AbstractSimpleResult(T value)
Method Detail

get

public T get()


Copyright © 2009 customware.net. All Rights Reserved.