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 Summary
ConstructorsConstructorDescriptionMovement(String limb, DanceNotationParser.Direction direction, DanceNotationParser.Level level, double durationTicks, double effortWeight, double effortTime) Creates an instance of aMovementrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedirectionrecord component.doubleReturns the value of thedurationTicksrecord component.doubleReturns the value of theeffortTimerecord component.doubleReturns the value of theeffortWeightrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.level()Returns the value of thelevelrecord component.limb()Returns the value of thelimbrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Movement
public Movement(String limb, DanceNotationParser.Direction direction, DanceNotationParser.Level level, double durationTicks, double effortWeight, double effortTime) Creates an instance of aMovementrecord class.- Parameters:
limb- the value for thelimbrecord componentdirection- the value for thedirectionrecord componentlevel- the value for thelevelrecord componentdurationTicks- the value for thedurationTicksrecord componenteffortWeight- the value for theeffortWeightrecord componenteffortTime- the value for theeffortTimerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
limb
Returns the value of thelimbrecord component.- Returns:
- the value of the
limbrecord component
-
direction
Returns the value of thedirectionrecord component.- Returns:
- the value of the
directionrecord component
-
level
Returns the value of thelevelrecord component.- Returns:
- the value of the
levelrecord component
-
durationTicks
public double durationTicks()Returns the value of thedurationTicksrecord component.- Returns:
- the value of the
durationTicksrecord component
-
effortWeight
public double effortWeight()Returns the value of theeffortWeightrecord component.- Returns:
- the value of the
effortWeightrecord component
-
effortTime
public double effortTime()Returns the value of theeffortTimerecord component.- Returns:
- the value of the
effortTimerecord component
-