@Override
    public boolean equals(Object o)
    {
    	if (o == null)
  			return false;
  		Booking b = (Booking)o;

  		
  		if ((b.media== null) || (b.booker == null)
  				|| (b.bookingDate == null))
  			return false;
  		
  		if ((this.media== null) || (this.booker == null) 
  				|| (this.bookingDate == null))
  			return false;
  		
  		boolean res = (b.media.equals(this.media)) 
    		&& (b.bookingDate.equals(this.bookingDate))
    		&& (b.booker.equals(this.booker));
  		
  		return res;
    }