@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_content = true && (isSetContent()); list.add(present_content); if (present_content) list.add(content); boolean present_markup = true && (isSetMarkup()); list.add(present_markup); if (present_markup) list.add(markup.getValue()); return list.hashCode(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_content = true && (isSetContent()); list.add(present_content); if (present_content) list.add(content); boolean present_markup = true && (isSetMarkup()); list.add(present_markup); if (present_markup) list.add(markup.getValue()); return list.hashCode(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, Comment struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.content != null) { oprot.writeFieldBegin(CONTENT_FIELD_DESC); oprot.writeString(struct.content); oprot.writeFieldEnd(); } if (struct.markup != null) { if (struct.isSetMarkup()) { oprot.writeFieldBegin(MARKUP_FIELD_DESC); oprot.writeI32(struct.markup.getValue()); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, Comment struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.content != null) { oprot.writeFieldBegin(CONTENT_FIELD_DESC); oprot.writeString(struct.content); oprot.writeFieldEnd(); } if (struct.markup != null) { if (struct.isSetMarkup()) { oprot.writeFieldBegin(MARKUP_FIELD_DESC); oprot.writeI32(struct.markup.getValue()); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, Comment struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeString(struct.content); BitSet optionals = new BitSet(); if (struct.isSetMarkup()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetMarkup()) { oprot.writeI32(struct.markup.getValue()); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, Comment struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeString(struct.content); BitSet optionals = new BitSet(); if (struct.isSetMarkup()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetMarkup()) { oprot.writeI32(struct.markup.getValue()); } }