Beispiel #1
0
 @Override
 public int hashCode() {
   int result = super.hashCode;
   if (result == 0) {
     result = unknownFields().hashCode();
     result = result * 37 + (value != null ? value.hashCode() : 0);
     super.hashCode = result;
   }
   return result;
 }
Beispiel #2
0
 @Override
 public int hashCode() {
   int result = super.hashCode;
   if (result == 0) {
     result = unknownFields().hashCode();
     result = result * 37 + (foo != null ? foo.hashCode() : 0);
     result = result * 37 + (bar != null ? bar.hashCode() : 0);
     result = result * 37 + (baz != null ? baz.hashCode() : 0);
     result = result * 37 + (qux != null ? qux.hashCode() : 0);
     result = result * 37 + (fred != null ? fred.hashCode() : 1);
     result = result * 37 + (daisy != null ? daisy.hashCode() : 0);
     result = result * 37 + (nested != null ? nested.hashCode() : 1);
     result = result * 37 + (ext != null ? ext.hashCode() : 0);
     result = result * 37 + (rep != null ? rep.hashCode() : 1);
     super.hashCode = result;
   }
   return result;
 }