org.progeeks.cmd
Class IntegerResult
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IntegerResult
public IntegerResult()
IntegerResult
public IntegerResult(int result)
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.