net.customware.gwt.dispatch.shared
Class AbstractSimpleResult<T>
java.lang.Object
net.customware.gwt.dispatch.shared.AbstractSimpleResult<T>
- Type Parameters:
T - The value type.
- All Implemented Interfaces:
- com.google.gwt.user.client.rpc.IsSerializable, Result
- Direct Known Subclasses:
- StringResult
public abstract class AbstractSimpleResult<T>
- extends 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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractSimpleResult
protected AbstractSimpleResult()
AbstractSimpleResult
public AbstractSimpleResult(T value)
get
public T get()
Copyright © 2011 customware.net. All Rights Reserved.