Record Class ToRelativeTemporalObjectNode.Result
java.lang.Object
java.lang.Record
com.oracle.truffle.js.nodes.temporal.ToRelativeTemporalObjectNode.Result
- Enclosing class:
ToRelativeTemporalObjectNode
public static record ToRelativeTemporalObjectNode.Result(JSTemporalPlainDateObject plainRelativeTo, JSTemporalZonedDateTimeObject zonedRelativeTo, TimeZoneMethodsRecord timeZoneRec)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionResult(JSTemporalPlainDateObject plainRelativeTo, JSTemporalZonedDateTimeObject zonedRelativeTo, TimeZoneMethodsRecord timeZoneRec) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncreateCalendarMethodsRecord(CalendarMethodsRecordLookupNode lookupDateAddNode, CalendarMethodsRecordLookupNode lookupDateUntilNode) 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 theplainRelativeTorecord component.Returns the value of thetimeZoneRecrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thezonedRelativeTorecord component.
-
Constructor Details
-
Result
public Result(JSTemporalPlainDateObject plainRelativeTo, JSTemporalZonedDateTimeObject zonedRelativeTo, TimeZoneMethodsRecord timeZoneRec) Creates an instance of aResultrecord class.- Parameters:
plainRelativeTo- the value for theplainRelativeTorecord componentzonedRelativeTo- the value for thezonedRelativeTorecord componenttimeZoneRec- the value for thetimeZoneRecrecord component
-
-
Method Details
-
relativeTo
-
createCalendarMethodsRecord
public CalendarMethodsRecord createCalendarMethodsRecord(CalendarMethodsRecordLookupNode lookupDateAddNode, CalendarMethodsRecordLookupNode lookupDateUntilNode) -
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. All components in this record class are compared withObjects::equals(Object,Object). -
plainRelativeTo
Returns the value of theplainRelativeTorecord component.- Returns:
- the value of the
plainRelativeTorecord component
-
zonedRelativeTo
Returns the value of thezonedRelativeTorecord component.- Returns:
- the value of the
zonedRelativeTorecord component
-
timeZoneRec
Returns the value of thetimeZoneRecrecord component.- Returns:
- the value of the
timeZoneRecrecord component
-