Пример #1
0
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((activationTime == null) ? 0 : activationTime.hashCode());
   result = prime * result + CollectionUtils.hashCode(attachments);
   result = prime * result + CollectionUtils.hashCode(comments);
   result = prime * result + ((createdOn == null) ? 0 : createdOn.hashCode());
   result = prime * result + ((expirationTime == null) ? 0 : expirationTime.hashCode());
   result = prime * result + (skipable ? 1231 : 1237);
   result = prime * result + ((status == null) ? 0 : status.hashCode());
   result = prime * result + ((previousStatus == null) ? 0 : previousStatus.hashCode());
   result = prime * result + ((workItemId == -1) ? 0 : (int) workItemId);
   // Should I add parentId to this hashCode?
   return result;
 }
Пример #2
0
 @Override
 public int hashCode() {
   int result = name != null ? name.hashCode() : 0;
   result = 31 * result + (startDate != null ? startDate.hashCode() : 0);
   result = 31 * result + (officeETA != null ? officeETA.hashCode() : 0);
   result = 31 * result + (officeETD != null ? officeETD.hashCode() : 0);
   result = 31 * result + totalCabCharges;
   result = 31 * result + (cabType != null ? cabType.hashCode() : 0);
   result = 31 * result + (status != null ? status.hashCode() : 0);
   result = 31 * result + (carpoolBuddies != null ? carpoolBuddies.hashCode() : 0);
   result = 31 * result + capacity;
   result = 31 * result + (routePoints != null ? routePoints.hashCode() : 0);
   return result;
 }