Class TimelineEntry.Factory
java.lang.Object
de.espirit.firstspirit.client.plugin.timeline.TimelineEntry.Factory
- Enclosing interface:
- TimelineEntry
Factory for creation of
TimelineEntry
.- Since:
- 5.1.107
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull TimelineEntry.Factory
builder()
Creates an instance of this factory for creation ofTimelineEntry
using a builder pattern.@NotNull TimelineEntry
create()
Creates aTimelineEntry
based on the given settings.static @NotNull TimelineEntry
Creates aTimelineEntry
associated with the specified revision.static @NotNull TimelineEntry
Creates aTimelineEntry
associated with the specified timestamp.@NotNull TimelineEntry.Factory
Sets the revision, the resultingTimelineEntry
should be associated with.@NotNull TimelineEntry.Factory
Sets the timestamp, the resultingTimelineEntry
should be associated with.
-
Constructor Details
-
Factory
public Factory()
-
-
Method Details
-
builder
Creates an instance of this factory for creation ofTimelineEntry
using a builder pattern.- Returns:
- builder
- Since:
- 5.1.107
-
create
Creates aTimelineEntry
associated with the specified timestamp.- Returns:
- timeline entry
- Since:
- 5.1.107
-
create
Creates aTimelineEntry
associated with the specified revision.- Returns:
- timeline entry
- Since:
- 5.1.107
-
timestamp
Sets the timestamp, the resultingTimelineEntry
should be associated with. Ifrevision(Revision)
is used,Revision.getCommitOrCreationTime()
will be used as timestamp.- Returns:
- this builder
- Since:
- 5.1.107
-
revision
Sets the revision, the resultingTimelineEntry
should be associated with.Revision.getCommitOrCreationTime()
will be used as timestamp.- Returns:
- this builder
- Since:
- 5.1.107
-
create
Creates aTimelineEntry
based on the given settings.- Returns:
- a new
TimelineEntry
instance - Throws:
IllegalStateException
- if revision or timestamp is missing- Since:
- 5.1.107
-