org.progeeks.cmd
Class ObjectResult

java.lang.Object
  extended by org.progeeks.cmd.ObjectResult
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, Result

public class ObjectResult
extends java.lang.Object
implements Result, java.io.Externalizable

Generic result holder object.

Version:
$Revision: 1.3 $
Author:
Paul Speed
See Also:
Serialized Form

Field Summary
static ObjectResult EMPTY_RESULT
           
 
Constructor Summary
ObjectResult()
           
ObjectResult(java.lang.Object result)
           
 
Method Summary
 java.lang.Object getValue()
           
 void readExternal(java.io.ObjectInput in)
          Optimized reading.
 java.lang.String toString()
           
 void writeExternal(java.io.ObjectOutput out)
          Optimized writing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY_RESULT

public static final ObjectResult EMPTY_RESULT
Constructor Detail

ObjectResult

public ObjectResult()

ObjectResult

public ObjectResult(java.lang.Object result)
Method Detail

getValue

public java.lang.Object getValue()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Optimized reading.

Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Optimized writing.

Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException


Copyright © 2002-2003 Paul Speed. All Rights Reserved.