Esempio n. 1
0
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((cancellationInfo == null) ? 0 : cancellationInfo.hashCode());
   result = prime * result + ((date == null) ? 0 : date.hashCode());
   result = prime * result + ((flightID == null) ? 0 : flightID.hashCode());
   result = prime * result + (isCancelled ? 1231 : 1237);
   result = prime * result + (isDiverted ? 1231 : 1237);
   result = prime * result + ((passengers == null) ? 0 : passengers.hashCode());
   result = prime * result + ((plane == null) ? 0 : plane.hashCode());
   return result;
 }
Esempio n. 2
0
 @Override
 public int hashCode() {
   int result = (alert != null ? alert.hashCode() : 0);
   result = 31 * result + (extra != null ? extra.hashCode() : 0);
   result = 31 * result + (sound != null ? sound.hashCode() : 0);
   result = 31 * result + (badge != null ? badge.hashCode() : 0);
   result = 31 * result + (contentAvailable != null ? contentAvailable.hashCode() : 0);
   result = 31 * result + (expiry != null ? expiry.hashCode() : 0);
   result = 31 * result + (priority != null ? priority.hashCode() : 0);
   return result;
 }
Esempio n. 3
0
 @Override
 public int hashCode() {
   return "EditorContext".hashCode() + projectId.hashCode() + selectedEntityData.hashCode();
 }