Record Class Ticker
java.lang.Object
java.lang.Record
net.flectone.pulse.model.util.Ticker
-
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 Tickerfinal inthashCode()Returns a hash code value for this object.longperiod()Returns the value of theperiodrecord component.toJson()final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
Ticker
public Ticker(boolean enable, long period) Creates an instance of aTickerrecord class.- Parameters:
enable- the value for theenablerecord componentperiod- the value for theperiodrecord component
-
-
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
public boolean enable()Returns the value of theenablerecord component.- Returns:
- the value of the
enablerecord component
-
period
public long period()Returns the value of theperiodrecord component.- Returns:
- the value of the
periodrecord component
-