Record Class DanceNotationParser.Movement

java.lang.Object
java.lang.Record
org.episteme.social.arts.dance.DanceNotationParser.Movement
Enclosing class:
DanceNotationParser

public static record DanceNotationParser.Movement(String limb, DanceNotationParser.Direction direction, DanceNotationParser.Level level, double durationTicks, double effortWeight, double effortTime) extends Record
  • Constructor Details

    • Movement

      public Movement(String limb, DanceNotationParser.Direction direction, DanceNotationParser.Level level, double durationTicks, double effortWeight, double effortTime)
      Creates an instance of a Movement record class.
      Parameters:
      limb - the value for the limb record component
      direction - the value for the direction record component
      level - the value for the level record component
      durationTicks - the value for the durationTicks record component
      effortWeight - the value for the effortWeight record component
      effortTime - the value for the effortTime record component
  • Method Details

    • 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.
    • limb

      public String limb()
      Returns the value of the limb record component.
      Returns:
      the value of the limb record component
    • direction

      public DanceNotationParser.Direction direction()
      Returns the value of the direction record component.
      Returns:
      the value of the direction record component
    • level

      public DanceNotationParser.Level level()
      Returns the value of the level record component.
      Returns:
      the value of the level record component
    • durationTicks

      public double durationTicks()
      Returns the value of the durationTicks record component.
      Returns:
      the value of the durationTicks record component
    • effortWeight

      public double effortWeight()
      Returns the value of the effortWeight record component.
      Returns:
      the value of the effortWeight record component
    • effortTime

      public double effortTime()
      Returns the value of the effortTime record component.
      Returns:
      the value of the effortTime record component