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
ConstructorsConstructorDescriptionTextFileTimelineEntry(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 aTextFileTimelineEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleancallout()double@Nullable Doubleduration()Returns the value of thedurationrecord component.booleanenabled()final booleanIndicates whether some other object is "equal to" this one.Returns the value of theeventSyncControllerrecord component.booleanReturns the value of theforceJumprecord component.final inthashCode()Returns a hash code value for this object.@Nullable Doublejump()Returns the value of thejumprecord component.@Nullable StringReturns the value of thejumpLabelrecord component.@Nullable Stringname()Returns the value of thenamerecord component.@Nullable Patternsync()Returns the value of thesyncrecord component.doubletime()Returns the value of thetimerecord component.@NotNull TimelineWindowReturns the value of thetimelineWindowrecord component.toString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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 aTextFileTimelineEntryrecord class.- Parameters:
time- the value for thetimerecord componentname- the value for thenamerecord componentsync- the value for thesyncrecord componentduration- the value for thedurationrecord componenttimelineWindow- the value for thetimelineWindowrecord componentjump- the value for thejumprecord componentjumpLabel- the value for thejumpLabelrecord componentforceJump- the value for theforceJumprecord componenteventSyncController- the value for theeventSyncControllerrecord 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:
toStringin interfaceTimelineEntry- Specified by:
toStringin classRecord- Returns:
- a string representation of this object
-
enabled
public boolean enabled()- Specified by:
enabledin interfaceTimelineEntry- Returns:
- Whether this entry is enabled
-
callout
public boolean callout()- Specified by:
calloutin interfaceTimelineEntry- Returns:
- True if this entry is also a timeline trigger.
-
calloutPreTime
public double calloutPreTime()- Specified by:
calloutPreTimein 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 thetimerecord component.- Specified by:
timein interfaceTimelineEntry- Returns:
- the value of the
timerecord component
-
name
Returns the value of thenamerecord component.- Specified by:
namein interfaceTimelineEntry- Returns:
- the value of the
namerecord component
-
sync
Returns the value of thesyncrecord component.- Specified by:
syncin interfaceTimelineEntry- Returns:
- the value of the
syncrecord component
-
duration
Returns the value of thedurationrecord component.- Specified by:
durationin interfaceTimelineEntry- Returns:
- the value of the
durationrecord component
-
timelineWindow
Returns the value of thetimelineWindowrecord component.- Specified by:
timelineWindowin interfaceTimelineEntry- Returns:
- the value of the
timelineWindowrecord component
-
jump
Returns the value of thejumprecord component.- Specified by:
jumpin interfaceTimelineEntry- Returns:
- the value of the
jumprecord component - See Also:
-
jumpLabel
Returns the value of thejumpLabelrecord component.- Specified by:
jumpLabelin interfaceTimelineEntry- Returns:
- the value of the
jumpLabelrecord component - See Also:
-
forceJump
public boolean forceJump()Returns the value of theforceJumprecord component.- Specified by:
forceJumpin interfaceTimelineEntry- Returns:
- the value of the
forceJumprecord component - See Also:
-
eventSyncController
Returns the value of theeventSyncControllerrecord component.- Specified by:
eventSyncControllerin interfaceTimelineEntry- Returns:
- the value of the
eventSyncControllerrecord component
-