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);
}
}
|