public Commit deepCopy() { return new Commit(this); }
public Commit deepCopy() { return new Commit(this); }
/** * Performs a deep copy on <i>other</i>. */ public Repository(Repository other) { if (other.isSetName()) { this.name = other.name; } if (other.isSetHead()) { this.head = new Commit(other.head); } }
/** * Performs a deep copy on <i>other</i>. */ public Repository(Repository other) { if (other.isSetName()) { this.name = other.name; } if (other.isSetHead()) { this.head = new Commit(other.head); } }
case 2: // HEAD if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.head = new Commit(); struct.head.read(iprot); struct.setHeadIsSet(true);
case 2: // HEAD if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.head = new Commit(); struct.head.read(iprot); struct.setHeadIsSet(true);
@Override public void read(org.apache.thrift.protocol.TProtocol prot, Repository struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.name = iprot.readString(); struct.setNameIsSet(true); BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.head = new Commit(); struct.head.read(iprot); struct.setHeadIsSet(true); } } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, Repository struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.name = iprot.readString(); struct.setNameIsSet(true); BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.head = new Commit(); struct.head.read(iprot); struct.setHeadIsSet(true); } } }
@Override protected Commit doForward(com.linecorp.centraldogma.common.Commit commit) { final Comment comment = new Comment(); comment.setContent(commit.detail()); comment.setMarkup(MarkupConverter.TO_DATA.convert(commit.markup())); return new Commit(RevisionConverter.TO_DATA.convert(commit.revision()), AuthorConverter.TO_DATA.convert(commit.author()), commit.whenAsText(), commit.summary(), comment, Collections.emptyList()); }
@Override protected Commit doForward(com.linecorp.centraldogma.common.Commit commit) { final Comment comment = new Comment(); comment.setContent(commit.detail()); comment.setMarkup(MarkupConverter.TO_DATA.convert(commit.markup())); return new Commit(RevisionConverter.TO_DATA.convert(commit.revision()), AuthorConverter.TO_DATA.convert(commit.author()), commit.whenAsText(), commit.summary(), comment, Collections.emptyList()); }