FileDocCategorySizeDatePackage
ReallyEfficientMoney.javaAPI DocExample789Thu Nov 08 00:22:32 GMT 2001com.ora.rmibook.chapter10

ReallyEfficientMoney

public class ReallyEfficientMoney extends Object implements Externalizable

Fields Summary
public static final long
serialVersionUID
protected int
_cents
protected String
_stringifiedRepresentation
Constructors Summary
public ReallyEfficientMoney(Integer cents)


       
        this (cents.intValue());
    
public ReallyEfficientMoney(int cents)

        _cents = cents;
        _stringifiedRepresentation = _cents + " cents.";
    
Methods Summary
public voidreadExternal(java.io.ObjectInput in)

        _cents = in.readInt();
        _stringifiedRepresentation = _cents + " cents.";
    
public voidwriteExternal(java.io.ObjectOutput out)

        out.writeInt(_cents);