FileDocCategorySizeDatePackage
ShipPK.javaAPI DocExample592Sat Mar 06 07:24:16 GMT 1999com.titan.ship

ShipPK.java

package com.titan.ship;

import java.io.Serializable;

public class ShipPK implements java.io.Serializable {

	public int id;

    public ShipPK(){}
    public ShipPK(int value){
        id = value;
    }

    public boolean equals(Object obj){
         if(obj == null || !(obj instanceof ShipPK))
             return false;
         else if(((ShipPK)obj).id == id)
             return true;
         else
             return false;
    }
    public int hashCode(){
       return id;
    }

    public String toString(){
       return String.valueOf(id);
    }
}