Package gg.xp.xivsupport.timelines
Record Class TextFileLabelEntry
java.lang.Object
java.lang.Record
gg.xp.xivsupport.timelines.TextFileLabelEntry
- All Implemented Interfaces:
TimelineEntry
,Serializable
,Comparable<TimelineEntry>
public record TextFileLabelEntry(double time, String name)
extends Record
implements TimelineEntry, Serializable
- See Also:
-
Constructor Summary
ConstructorDescriptionTextFileLabelEntry
(double time, String name) Creates an instance of aTextFileLabelEntry
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
callout()
double
@Nullable Double
duration()
An optional duration for the bar to be in "active" state as opposed to immediately becoming "in the past" when its time arrives.boolean
enabled()
final boolean
Indicates whether some other object is "equal to" this one.@Nullable EventSyncController
final int
hashCode()
Returns a hash code value for this object.boolean
isLabel()
@Nullable Double
jump()
An optional time to jump to.@Nullable String
Same asTimelineEntry.jump()
, but takes a 'label' to jump to instead of a raw time.name()
Returns the value of thename
record component.@Nullable Pattern
sync()
ACT parsed line regex to sync todouble
time()
Returns the value of thetime
record component.@NotNull TimelineWindow
The relative window in which this entry can be synced totoString()
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, forceJump, getAllTextEntries, getImportSource, getMaxTime, getMinTime, getSyncToTime, hasEventSync, icon, isImported, makeTriggerJs, makeTriggerTimelineEntries, replaces, shouldSupersede, shouldSync, shouldSync, toTextFormat, untranslated
-
Constructor Details
-
TextFileLabelEntry
Creates an instance of aTextFileLabelEntry
record class.- Parameters:
time
- the value for thetime
record componentname
- the value for thename
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
-
sync
Description copied from interface:TimelineEntry
ACT parsed line regex to sync to- Specified by:
sync
in interfaceTimelineEntry
- Returns:
- The sync pattern
-
duration
Description copied from interface:TimelineEntry
An optional duration for the bar to be in "active" state as opposed to immediately becoming "in the past" when its time arrives.- Specified by:
duration
in interfaceTimelineEntry
- Returns:
- The optional duration
-
timelineWindow
Description copied from interface:TimelineEntry
The relative window in which this entry can be synced to- Specified by:
timelineWindow
in interfaceTimelineEntry
- Returns:
- The sync window
-
jump
Description copied from interface:TimelineEntry
An optional time to jump to. IfTimelineEntry.forceJump()
is false, this line must have its sync conditions hit (i.e. we are syncing onto this line). If forceJump is true, then the jump will also happen if this timeline entry's time is hit.- Specified by:
jump
in interfaceTimelineEntry
- Returns:
- The jump time.
- See Also:
-
jumpLabel
Description copied from interface:TimelineEntry
Same asTimelineEntry.jump()
, but takes a 'label' to jump to instead of a raw time.- Specified by:
jumpLabel
in interfaceTimelineEntry
- Returns:
- The jump label
- See Also:
-
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
-
isLabel
public boolean isLabel()- Specified by:
isLabel
in interfaceTimelineEntry
- Returns:
- true if this entry is a label
-
eventSyncController
- Specified by:
eventSyncController
in interfaceTimelineEntry
-
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
-