FileDocCategorySizeDatePackage
ReservationPK.javaAPI DocExample695Thu Apr 20 15:53:50 BST 2000com.titan.reservation

ReservationPK

public class ReservationPK extends Object implements Serializable

Fields Summary
public int
cruiseID
public int
cabinID
Constructors Summary
public ReservationPK()

public ReservationPK(int crsID, int cbnID)

        cruiseID = crsID;
        cabinID = cbnID;
    
Methods Summary
public booleanequals(java.lang.Object obj)

         if(obj instanceof ReservationPK)
             return (((ReservationPK)obj).cruiseID == cruiseID && ((ReservationPK)obj).cabinID == cabinID);
         
         return false;
    
public inthashCode()

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

        return cruiseID+""+cabinID;