public CommitDto(Commit commit) { requireNonNull(commit, "commit"); revision = new RevisionDto(commit.getRevision()); author = new AuthorDto(commit.getAuthor()); timestamp = commit.getTimestamp(); summary = commit.getSummary(); detail = new CommentDto(commit.getDetail()); diffs = commit.getDiffs().stream().map(ChangeDto::new).collect(Collectors.toList()); }
public CommitDto(Commit commit) { requireNonNull(commit, "commit"); revision = new RevisionDto(commit.getRevision()); author = new AuthorDto(commit.getAuthor()); timestamp = commit.getTimestamp(); summary = commit.getSummary(); detail = new CommentDto(commit.getDetail()); diffs = commit.getDiffs().stream().map(ChangeDto::new).collect(Collectors.toList()); }
public CommitDto(Commit commit) { requireNonNull(commit, "commit"); revision = new RevisionDto(commit.getRevision()); author = new AuthorDto(commit.getAuthor()); timestamp = commit.getTimestamp(); summary = commit.getSummary(); detail = new CommentDto(commit.getDetail()); diffs = commit.getDiffs().stream().map(ChangeDto::new).collect(Collectors.toList()); }
public Object getFieldValue(_Fields field) { switch (field) { case REVISION: return getRevision(); case AUTHOR: return getAuthor(); case TIMESTAMP: return getTimestamp(); case SUMMARY: return getSummary(); case DETAIL: return getDetail(); case DIFFS: return getDiffs(); } throw new IllegalStateException(); }
public Object getFieldValue(_Fields field) { switch (field) { case REVISION: return getRevision(); case AUTHOR: return getAuthor(); case TIMESTAMP: return getTimestamp(); case SUMMARY: return getSummary(); case DETAIL: return getDetail(); case DIFFS: return getDiffs(); } throw new IllegalStateException(); }