FileDocCategorySizeDatePackage
AccountType.javaAPI DocExample911Mon Apr 03 20:34:12 BST 2000com.imaginary.bank

AccountType

public class AccountType extends Object implements Serializable

Fields Summary
public static final AccountType
CHECKING
public static final AccountType
SAVINGS
private String
code
Constructors Summary
private AccountType(String t)

    
       
        super();
        code = t;
    
Methods Summary
public booleanequals(java.lang.Object ob)

        if( !(ob instanceof AccountType) ) {
            return false;
        }
        else {
            AccountType at = (AccountType)ob;

            return at.code.equals(code);
        }
    
public java.lang.StringgetCode()

        return code;
    
public inthashCode()

        return code.hashCode();
    
public java.lang.StringtoString()

        if( code.equals("CHK") ) {
            return "CHECKING";
        }
        else {
            return "SAVINGS";
        }