FileDocCategorySizeDatePackage
ItemKey.javaAPI DocExample534Mon Nov 24 22:05:06 GMT 2003com.oreilly.patterns.chapter9

ItemKey

public final class ItemKey extends Object implements Serializable

Fields Summary
public int
itemNumber
Constructors Summary
Methods Summary
public booleanequals(java.lang.Object otherOb)

        
        if (this == otherOb) {
            return true;
        }
        if (!(otherOb instanceof ItemKey)) {
            return false;
        }

        ItemKey other = (ItemKey) otherOb;
        
	return (itemNumber == other.itemNumber);
    
public inthashCode()

        return itemNumber;