public Author deepCopy() { return new Author(this); }
public Author deepCopy() { return new Author(this); }
@Override protected Author doForward(com.linecorp.centraldogma.common.Author author) { return new Author(author.name(), author.email()); }
@Override protected Author doForward(com.linecorp.centraldogma.common.Author author) { return new Author(author.name(), author.email()); }
case 2: // AUTHOR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.author = new Author(); struct.author.read(iprot); struct.setAuthorIsSet(true);
case 2: // AUTHOR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.author = new Author(); struct.author.read(iprot); struct.setAuthorIsSet(true);
/** * Performs a deep copy on <i>other</i>. */ public Commit(Commit other) { if (other.isSetRevision()) { this.revision = new Revision(other.revision); } if (other.isSetAuthor()) { this.author = new Author(other.author); } if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetSummary()) { this.summary = other.summary; } if (other.isSetDetail()) { this.detail = new Comment(other.detail); } if (other.isSetDiffs()) { List<Change> __this__diffs = new ArrayList<Change>(other.diffs.size()); for (Change other_element : other.diffs) { __this__diffs.add(new Change(other_element)); } this.diffs = __this__diffs; } }
/** * Performs a deep copy on <i>other</i>. */ public Commit(Commit other) { if (other.isSetRevision()) { this.revision = new Revision(other.revision); } if (other.isSetAuthor()) { this.author = new Author(other.author); } if (other.isSetTimestamp()) { this.timestamp = other.timestamp; } if (other.isSetSummary()) { this.summary = other.summary; } if (other.isSetDetail()) { this.detail = new Comment(other.detail); } if (other.isSetDiffs()) { List<Change> __this__diffs = new ArrayList<Change>(other.diffs.size()); for (Change other_element : other.diffs) { __this__diffs.add(new Change(other_element)); } this.diffs = __this__diffs; } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, Commit struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.revision = new Revision(); struct.revision.read(iprot); struct.setRevisionIsSet(true); struct.author = new Author(); struct.author.read(iprot); struct.setAuthorIsSet(true); struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); struct.summary = iprot.readString(); struct.setSummaryIsSet(true); struct.detail = new Comment(); struct.detail.read(iprot); struct.setDetailIsSet(true); { org.apache.thrift.protocol.TList _list13 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.diffs = new ArrayList<Change>(_list13.size); Change _elem14; for (int _i15 = 0; _i15 < _list13.size; ++_i15) { _elem14 = new Change(); _elem14.read(iprot); struct.diffs.add(_elem14); } } struct.setDiffsIsSet(true); } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, Commit struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.revision = new Revision(); struct.revision.read(iprot); struct.setRevisionIsSet(true); struct.author = new Author(); struct.author.read(iprot); struct.setAuthorIsSet(true); struct.timestamp = iprot.readString(); struct.setTimestampIsSet(true); struct.summary = iprot.readString(); struct.setSummaryIsSet(true); struct.detail = new Comment(); struct.detail.read(iprot); struct.setDetailIsSet(true); { org.apache.thrift.protocol.TList _list5 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.diffs = new ArrayList<Change>(_list5.size); Change _elem6; for (int _i7 = 0; _i7 < _list5.size; ++_i7) { _elem6 = new Change(); _elem6.read(iprot); struct.diffs.add(_elem6); } } struct.setDiffsIsSet(true); } }