/** * Are these the same? * * @return true if obj is the same Delivery as this one. */ public boolean equals(Object obj) { if (!super.equals(obj)) return false; TestDelivery cob = (TestDelivery) obj; if (StringUtil.different(cob.getMessage(), getMessage() )) return false; return true; }}
/** * Are these the same? * * @return true if obj is the same Delivery as this one. */ public boolean equals(Object obj) { if (!super.equals(obj)) return false; ChatRestDelivery cob = (ChatRestDelivery) obj; if (StringUtil.different(cob.getMessage().getId(), getMessage().getId() )) return false; return true; }