FileDocCategorySizeDatePackage
ReservationPK.javaAPI DocExample756Sat Mar 06 12:16:52 GMT 1999com.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 false;
         else if(((ReservationPK)obj).cruiseID == cruiseID && ((ReservationPK)obj).cabinID == cabinID)
             return true;
         else
             return false;
    
public inthashCode()

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

        return cruiseID+""+cabinID;