Record Class Step

java.lang.Object
java.lang.Record
cromveil.combatnumbers.animation.Step

public record Step(String at, int startMs, int durationMs, int plays, String label, Stagger stagger, Playback playback, Map<Channel, Interpolator> channels) extends Record
  • 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 a Step record class.
      Parameters:
      at - the value for the at record component
      startMs - the value for the startMs record component
      durationMs - the value for the durationMs record component
      plays - the value for the plays record component
      label - the value for the label record component
      stagger - the value for the stagger record component
      playback - the value for the playback record component
      channels - the value for the channels record component
  • Method Details

    • hasStagger

      public boolean hasStagger()
    • channel

      public Interpolator channel(Channel ch)
    • hasChannel

      public boolean hasChannel(Channel ch)
    • toString

      public final String 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 class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • at

      public String at()
      Returns the value of the at record component.
      Returns:
      the value of the at record component
    • startMs

      public int startMs()
      Returns the value of the startMs record component.
      Returns:
      the value of the startMs record component
    • durationMs

      public int durationMs()
      Returns the value of the durationMs record component.
      Returns:
      the value of the durationMs record component
    • plays

      public int plays()
      Returns the value of the plays record component.
      Returns:
      the value of the plays record component
    • label

      public String label()
      Returns the value of the label record component.
      Returns:
      the value of the label record component
    • stagger

      public Stagger stagger()
      Returns the value of the stagger record component.
      Returns:
      the value of the stagger record component
    • playback

      public Playback playback()
      Returns the value of the playback record component.
      Returns:
      the value of the playback record component
    • channels

      public Map<Channel, Interpolator> channels()
      Returns the value of the channels record component.
      Returns:
      the value of the channels record component