Record Class Ticker
java.lang.Object
java.lang.Record
net.flectone.pulse.model.value.Ticker
- Record Components:
enable- whether the schedule runsperiod- the delay between runs, in ticks
A repeating schedule for modules that fire on their own, such as auto messages.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTicker(boolean enable, long period) Creates an instance of aTickerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanenable()Returns the value of theenablerecord component.final booleanIndicates whether some other object is "equal to" this one.static TickerReads a ticker from its config representation.final inthashCode()Returns a hash code value for this object.longperiod()Returns the value of theperiodrecord component.toJson()Writes this ticker back to its config representation, omitting the period while disabled.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT
A disabled schedule, which every disabled entry collapses to.
-
-
Constructor Details
-
Ticker
-
-
Method Details
-
fromJson
-
toJson
-
toString
-
hashCode
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
enable
-
period
-