Record Class Times
java.lang.Object
java.lang.Record
net.flectone.pulse.model.value.Times
- Record Components:
fadeInTicks- how long the text fades in, in ticksstayTicks- how long it stays fully visible, in ticksfadeOutTicks- how long it fades out, in ticks
Fade and hold timings for a title, subtitle or action bar.
-
Constructor Summary
ConstructorsConstructorDescriptionTimes(int fadeInTicks, int stayTicks, int fadeOutTicks) Creates an instance of aTimesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefadeInTicksrecord component.intReturns the value of thefadeOutTicksrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of thestayTicksrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Times
public Times(int fadeInTicks, int stayTicks, int fadeOutTicks) Creates an instance of aTimesrecord class.- Parameters:
fadeInTicks- the value for thefadeInTicksrecord componentstayTicks- the value for thestayTicksrecord componentfadeOutTicks- the value for thefadeOutTicksrecord component
-
-
Method Details
-
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. -
fadeInTicks
public int fadeInTicks()Returns the value of thefadeInTicksrecord component.- Returns:
- the value of the
fadeInTicksrecord component
-
stayTicks
-
fadeOutTicks
public int fadeOutTicks()Returns the value of thefadeOutTicksrecord component.- Returns:
- the value of the
fadeOutTicksrecord component
-