Record Class Step
java.lang.Object
java.lang.Record
cromveil.combatnumbers.animation.Step
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionat()Returns the value of theatrecord component.channels()Returns the value of thechannelsrecord component.intReturns the value of thedurationMsrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanhasChannel(Channel ch) final inthashCode()Returns a hash code value for this object.booleanlabel()Returns the value of thelabelrecord component.playback()Returns the value of theplaybackrecord component.intplays()Returns the value of theplaysrecord component.stagger()Returns the value of thestaggerrecord component.intstartMs()Returns the value of thestartMsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Step
public Step(String at, int startMs, int durationMs, int plays, String label, Stagger stagger, Playback playback, Map<Channel, Interpolator> channels) Creates an instance of aSteprecord class.- Parameters:
at- the value for theatrecord componentstartMs- the value for thestartMsrecord componentdurationMs- the value for thedurationMsrecord componentplays- the value for theplaysrecord componentlabel- the value for thelabelrecord componentstagger- the value for thestaggerrecord componentplayback- the value for theplaybackrecord componentchannels- the value for thechannelsrecord component
-
-
Method Details
-
hasStagger
public boolean hasStagger() -
channel
-
hasChannel
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
at
Returns the value of theatrecord component.- Returns:
- the value of the
atrecord component
-
startMs
public int startMs()Returns the value of thestartMsrecord component.- Returns:
- the value of the
startMsrecord component
-
durationMs
public int durationMs()Returns the value of thedurationMsrecord component.- Returns:
- the value of the
durationMsrecord component
-
plays
public int plays()Returns the value of theplaysrecord component.- Returns:
- the value of the
playsrecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
stagger
Returns the value of thestaggerrecord component.- Returns:
- the value of the
staggerrecord component
-
playback
Returns the value of theplaybackrecord component.- Returns:
- the value of the
playbackrecord component
-
channels
Returns the value of thechannelsrecord component.- Returns:
- the value of the
channelsrecord component
-