Record Class DurationNudgeResultRecord
java.lang.Object
java.lang.Record
com.oracle.truffle.js.runtime.builtins.temporal.DurationNudgeResultRecord
public record DurationNudgeResultRecord(NormalizedDurationRecord duration, BigInt nudgedEpochNs, boolean didExpandCalendarUnit)
extends Record
A Duration Nudge Result Record.
-
Constructor Summary
ConstructorsConstructorDescriptionDurationNudgeResultRecord(NormalizedDurationRecord duration, BigInt nudgedEpochNs, boolean didExpandCalendarUnit) Creates an instance of aDurationNudgeResultRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thedidExpandCalendarUnitrecord component.duration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thenudgedEpochNsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DurationNudgeResultRecord
public DurationNudgeResultRecord(NormalizedDurationRecord duration, BigInt nudgedEpochNs, boolean didExpandCalendarUnit) Creates an instance of aDurationNudgeResultRecordrecord class.- Parameters:
duration- the value for thedurationrecord componentnudgedEpochNs- the value for thenudgedEpochNsrecord componentdidExpandCalendarUnit- the value for thedidExpandCalendarUnitrecord 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. -
duration
Returns the value of thedurationrecord component.- Returns:
- the value of the
durationrecord component
-
nudgedEpochNs
Returns the value of thenudgedEpochNsrecord component.- Returns:
- the value of the
nudgedEpochNsrecord component
-
didExpandCalendarUnit
public boolean didExpandCalendarUnit()Returns the value of thedidExpandCalendarUnitrecord component.- Returns:
- the value of the
didExpandCalendarUnitrecord component
-