Record Class NudgeToCalendarUnitNode.Result
java.lang.Object
java.lang.Record
com.oracle.truffle.js.nodes.temporal.NudgeToCalendarUnitNode.Result
- Enclosing class:
NudgeToCalendarUnitNode
public static record NudgeToCalendarUnitNode.Result(DurationNudgeResultRecord nudgeResult, double total)
extends Record
Record returned by the NudgeToCalendarUnit abstract operation.
-
Constructor Summary
ConstructorsConstructorDescriptionResult(DurationNudgeResultRecord nudgeResult, double total) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thenudgeResultrecord component.final StringtoString()Returns a string representation of this record class.doubletotal()Returns the value of thetotalrecord component.
-
Constructor Details
-
Result
Creates an instance of aResultrecord class.- Parameters:
nudgeResult- the value for thenudgeResultrecord componenttotal- the value for thetotalrecord 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. -
nudgeResult
Returns the value of thenudgeResultrecord component.- Returns:
- the value of the
nudgeResultrecord component
-
total
public double total()Returns the value of thetotalrecord component.- Returns:
- the value of the
totalrecord component
-