FileDocCategorySizeDatePackage
SalesRecordKey.javaAPI DocExample655Mon Nov 24 22:05:08 GMT 2003com.oreilly.patterns.chapter9

SalesRecordKey

public final class SalesRecordKey extends Object implements Serializable

Fields Summary
public int
saleId
Constructors Summary
public SalesRecordKey()

public SalesRecordKey(int saleId)

        this.saleId = saleId;
    
Methods Summary
public booleanequals(java.lang.Object otherOb)

        
        if (this == otherOb) {
            return true;
        }
        if (!(otherOb instanceof SalesRecordKey)) {
            return false;
        }
        SalesRecordKey other = (SalesRecordKey) otherOb;
        return (saleId == other.saleId);
    
public inthashCode()

        return saleId