Example #1
0
 @Override
 public int hashCode() {
   int result = left != null ? left.hashCode() : 0;
   result = 31 * result + (middle != null ? middle.hashCode() : 0);
   result = 31 * result + (right != null ? right.hashCode() : 0);
   return result;
 }
Example #2
0
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((left == null) ? 0 : left.hashCode());
   result = prime * result + ((middle == null) ? 0 : middle.hashCode());
   result = prime * result + ((right == null) ? 0 : right.hashCode());
   return result;
 }