Package gg.xp.xivsupport.timelines
Record Class TextFileTimelineEntry
java.lang.Object
java.lang.Record
gg.xp.xivsupport.timelines.TextFileTimelineEntry
- All Implemented Interfaces:
TimelineEntry
,Serializable
,Comparable<TimelineEntry>
public record TextFileTimelineEntry(double time, @Nullable String name, @Nullable Pattern sync, @Nullable Double duration, @NotNull TimelineWindow timelineWindow, @Nullable Double jump, @Nullable String jumpLabel, boolean forceJump, EventSyncController eventSyncController)
extends Record
implements TimelineEntry, Serializable
- See Also:
-
Constructor Summary
ConstructorDescriptionTextFileTimelineEntry
(double time, @Nullable String name, @Nullable Pattern sync, @Nullable Double duration, @NotNull TimelineWindow timelineWindow, @Nullable Double jump, @Nullable String jumpLabel, boolean forceJump, EventSyncController eventSyncController) Creates an instance of aTextFileTimelineEntry
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
callout()
double
@Nullable Double
duration()
Returns the value of theduration
record component.boolean
enabled()
final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theeventSyncController
record component.boolean
Returns the value of theforceJump
record component.final int
hashCode()
Returns a hash code value for this object.@Nullable Double
jump()
Returns the value of thejump
record component.@Nullable String
Returns the value of thejumpLabel
record component.@Nullable String
name()
Returns the value of thename
record component.@Nullable Pattern
sync()
Returns the value of thesync
record component.double
time()
Returns the value of thetime
record component.@NotNull TimelineWindow
Returns the value of thetimelineWindow
record component.toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface gg.xp.xivsupport.timelines.TimelineEntry
canSync, compareTo, effectiveCalloutTime, enabledForJob, eventSyncType, getAllTextEntries, getImportSource, getMaxTime, getMinTime, getSyncToTime, hasEventSync, icon, isImported, isLabel, makeTriggerJs, makeTriggerTimelineEntries, replaces, shouldSupersede, shouldSync, shouldSync, toTextFormat, untranslated
-
Constructor Details
-
TextFileTimelineEntry
public TextFileTimelineEntry(double time, @Nullable @Nullable String name, @Nullable @Nullable Pattern sync, @Nullable @Nullable Double duration, @NotNull @NotNull TimelineWindow timelineWindow, @Nullable @Nullable Double jump, @Nullable @Nullable String jumpLabel, boolean forceJump, EventSyncController eventSyncController) Creates an instance of aTextFileTimelineEntry
record class.- Parameters:
time
- the value for thetime
record componentname
- the value for thename
record componentsync
- the value for thesync
record componentduration
- the value for theduration
record componenttimelineWindow
- the value for thetimelineWindow
record componentjump
- the value for thejump
record componentjumpLabel
- the value for thejumpLabel
record componentforceJump
- the value for theforceJump
record componenteventSyncController
- the value for theeventSyncController
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.- Specified by:
toString
in interfaceTimelineEntry
- Specified by:
toString
in classRecord
- Returns:
- a string representation of this object
-
enabled
public boolean enabled()- Specified by:
enabled
in interfaceTimelineEntry
- Returns:
- Whether this entry is enabled
-
callout
public boolean callout()- Specified by:
callout
in interfaceTimelineEntry
- Returns:
- True if this entry is also a timeline trigger.
-
calloutPreTime
public double calloutPreTime()- Specified by:
calloutPreTime
in interfaceTimelineEntry
- Returns:
- The amount of time before this entry's
TimelineEntry.time()
that the trigger should fire
-
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
time
public double time()Returns the value of thetime
record component.- Specified by:
time
in interfaceTimelineEntry
- Returns:
- the value of the
time
record component
-
name
Returns the value of thename
record component.- Specified by:
name
in interfaceTimelineEntry
- Returns:
- the value of the
name
record component
-
sync
Returns the value of thesync
record component.- Specified by:
sync
in interfaceTimelineEntry
- Returns:
- the value of the
sync
record component
-
duration
Returns the value of theduration
record component.- Specified by:
duration
in interfaceTimelineEntry
- Returns:
- the value of the
duration
record component
-
timelineWindow
Returns the value of thetimelineWindow
record component.- Specified by:
timelineWindow
in interfaceTimelineEntry
- Returns:
- the value of the
timelineWindow
record component
-
jump
Returns the value of thejump
record component.- Specified by:
jump
in interfaceTimelineEntry
- Returns:
- the value of the
jump
record component - See Also:
-
jumpLabel
Returns the value of thejumpLabel
record component.- Specified by:
jumpLabel
in interfaceTimelineEntry
- Returns:
- the value of the
jumpLabel
record component - See Also:
-
forceJump
public boolean forceJump()Returns the value of theforceJump
record component.- Specified by:
forceJump
in interfaceTimelineEntry
- Returns:
- the value of the
forceJump
record component - See Also:
-
eventSyncController
Returns the value of theeventSyncController
record component.- Specified by:
eventSyncController
in interfaceTimelineEntry
- Returns:
- the value of the
eventSyncController
record component
-