public static class TimelineEntry.Factory extends Object
TimelineEntry
.Constructor and Description |
---|
TimelineEntry.Factory() |
Modifier and Type | Method and Description |
---|---|
static TimelineEntry.Factory |
builder()
Creates an instance of this factory for creation of
TimelineEntry using a builder pattern. |
TimelineEntry |
create()
Creates a
TimelineEntry based on the given settings. |
static TimelineEntry |
create(Date timestamp)
Creates a
TimelineEntry associated with the specified timestamp. |
static TimelineEntry |
create(Revision revision)
Creates a
TimelineEntry associated with the specified revision. |
TimelineEntry.Factory |
revision(Revision revision)
Sets the revision, the resulting
TimelineEntry should be associated with. |
TimelineEntry.Factory |
timestamp(Date timestamp)
Sets the timestamp, the resulting
TimelineEntry should be associated with. |
@NotNull public static TimelineEntry.Factory builder()
TimelineEntry
using a builder pattern.@NotNull public static TimelineEntry create(@NotNull Date timestamp)
TimelineEntry
associated with the specified timestamp.@NotNull public static TimelineEntry create(@NotNull Revision revision)
TimelineEntry
associated with the specified revision.@NotNull public TimelineEntry.Factory timestamp(Date timestamp)
TimelineEntry
should be associated with.
If revision(Revision)
is used, Revision.getCommitOrCreationTime()
will be used as timestamp.@NotNull public TimelineEntry.Factory revision(Revision revision)
TimelineEntry
should be associated with.
Revision.getCommitOrCreationTime()
will be used as timestamp.@NotNull public TimelineEntry create()
TimelineEntry
based on the given settings.TimelineEntry
instanceIllegalStateException
- if revision or timestamp is missingCopyright © 2015 e-Spirit AG. All Rights Reserved. Build 5.1.408