Interface TimelineEntryProvider
- All Known Subinterfaces:
FutureTimelineProvider
,HistoryTimelineProvider
public interface TimelineEntryProvider
Provides entries for the timeline of the multi-perspective-preview.
- Since:
- 5.1.107
-
Method Summary
Modifier and TypeMethodDescription@NotNull Collection<TimelineEntry>
getEntries
(@NotNull IDProvider element, @NotNull Language language) Returns a list of entries that should be shown in the related timeline.long
getRange()
Returns the time range that should be displayed in the timeline.
-
Method Details
-
getRange
long getRange()Returns the time range that should be displayed in the timeline. Might be0
to show all entries returned bygetEntries(IDProvider, Language)
.- Returns:
- the time range for the timeline
- Since:
- 5.1.107
-
getEntries
@NotNull @NotNull Collection<TimelineEntry> getEntries(@NotNull @NotNull IDProvider element, @NotNull @NotNull Language language) Returns a list of entries that should be shown in the related timeline. The time range might be fixed bygetRange()
.- Parameters:
element
- the element to calculate the timeline entries forlanguage
- the language to calculate the timeline entries for- Returns:
- the timeline entries
- Since:
- 5.1.107
- See Also:
-