org.progeeks.cmd
Class IntegerResult

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

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

Contains the integer result of a command execution. These primitive wrappers are nice because they eleminate an extra object allocation.

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

Constructor Summary
IntegerResult()
           
IntegerResult(int result)
           
 
Method Summary
 int 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
 

Constructor Detail

IntegerResult

public IntegerResult()

IntegerResult

public IntegerResult(int result)
Method Detail

getValue

public int getValue()

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

toString

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


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