コード例 #1
0
 public Builder mergeFrom(io.grpc.examples.CalculatorOuterClass.CalculatorResponse other) {
   if (other == io.grpc.examples.CalculatorOuterClass.CalculatorResponse.getDefaultInstance())
     return this;
   if (other.getResult() != 0D) {
     setResult(other.getResult());
   }
   onChanged();
   return this;
 }
コード例 #2
0
    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
        return true;
      }
      if (!(obj instanceof io.grpc.examples.CalculatorOuterClass.CalculatorResponse)) {
        return super.equals(obj);
      }
      io.grpc.examples.CalculatorOuterClass.CalculatorResponse other =
          (io.grpc.examples.CalculatorOuterClass.CalculatorResponse) obj;

      boolean result = true;
      result =
          result
              && (java.lang.Double.doubleToLongBits(getResult())
                  == java.lang.Double.doubleToLongBits(other.getResult()));
      return result;
    }