示例#1
0
文件: FooBar.java 项目: pforhan/wire
 @Override
 public boolean equals(Object other) {
   if (other == this) return true;
   if (!(other instanceof More)) return false;
   More o = (More) other;
   return WireInternal.equals(unknownFields(), o.unknownFields())
       && WireInternal.equals(serial, o.serial);
 }
示例#2
0
文件: FooBar.java 项目: pforhan/wire
 @Override
 public void encode(ProtoWriter writer, More value) throws IOException {
   if (value.serial != null)
     ProtoAdapter.INT32.asRepeated().encodeWithTag(writer, 1, value.serial);
   writer.writeBytes(value.unknownFields());
 }
示例#3
0
文件: FooBar.java 项目: pforhan/wire
 @Override
 public int encodedSize(More value) {
   return ProtoAdapter.INT32.asRepeated().encodedSizeWithTag(1, value.serial)
       + value.unknownFields().size();
 }