@Override public long creationTimeMillis() { return firstCommit.when(); }
@Override public long creationTimeMillis() { return firstCommit.when(); }
@Override public long creationTimeMillis() { return firstCommit.when(); }
/** * Returns the time and date of this {@link Commit} in * <a href="https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations">ISO 8601 * combined date and time representation</a>. */ public String whenAsText() { if (whenAsText == null) { whenAsText = DateTimeFormatter.ISO_INSTANT.format(Instant.ofEpochMilli(when())); } return whenAsText; }
/** * Returns the time and date of this {@link Commit} in * <a href="https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations">ISO 8601 * combined date and time representation</a>. */ public String whenAsText() { if (whenAsText == null) { whenAsText = DateTimeFormatter.ISO_INSTANT.format(Instant.ofEpochMilli(when())); } return whenAsText; }
/** * Returns the time and date of this {@link Commit} in * <a href="https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations">ISO 8601 * combined date and time representation</a>. */ public String whenAsText() { if (whenAsText == null) { whenAsText = DateTimeFormatter.ISO_INSTANT.format(Instant.ofEpochMilli(when())); } return whenAsText; }
/** * Returns the creation time of this {@link Repository}. */ default long creationTimeMillis() { try { final List<Commit> history = history(Revision.INIT, Revision.INIT, ALL_PATH, 1).join(); return history.get(0).when(); } catch (CompletionException e) { final Throwable cause = Throwables.getRootCause(e); Throwables.throwIfUnchecked(cause); throw new StorageException("failed to retrieve the initial commit", cause); } }
/** * Returns the creation time of this {@link Repository}. */ default long creationTimeMillis() { try { final List<Commit> history = history(Revision.INIT, Revision.INIT, ALL_PATH, 1).join(); return history.get(0).when(); } catch (CompletionException e) { final Throwable cause = Throwables.getRootCause(e); Throwables.throwIfUnchecked(cause); throw new StorageException("failed to retrieve the initial commit", cause); } }
/** * Returns the creation time of this {@link Repository}. */ default long creationTimeMillis() { try { final List<Commit> history = history(Revision.INIT, Revision.INIT, ALL_PATH, 1).join(); return history.get(0).when(); } catch (CompletionException e) { final Throwable cause = Throwables.getRootCause(e); Throwables.throwIfUnchecked(cause); throw new StorageException("failed to retrieve the initial commit", cause); } }
public static WatchResultDto convert(Commit commit, @Nullable EntryDto<?> entry) { requireNonNull(commit, "commit"); return new WatchResultDto(commit.revision(), commit.author(), new CommitMessageDto(commit.summary(), commit.detail(), commit.markup()), commit.when(), entry); }
public static CommitDto convert(Commit commit) { requireNonNull(commit, "commit"); return convert(commit.revision(), commit.author(), new CommitMessageDto(commit.summary(), commit.detail(), commit.markup()), commit.when()); }
public static CommitDto convert(Commit commit) { requireNonNull(commit, "commit"); return convert(commit.revision(), commit.author(), new CommitMessageDto(commit.summary(), commit.detail(), commit.markup()), commit.when()); }
public static CommitDto convert(Commit commit) { requireNonNull(commit, "commit"); return convert(commit.revision(), commit.author(), new CommitMessageDto(commit.summary(), commit.detail(), commit.markup()), commit.when()); }