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)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionResult(JSTemporalPlainDateObject plainRelativeTo, JSTemporalZonedDateTimeObject zonedRelativeTo) 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 theplainRelativeTorecord 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) Creates an instance of aResultrecord class.- Parameters:
plainRelativeTo- the value for theplainRelativeTorecord componentzonedRelativeTo- the value for thezonedRelativeTorecord 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. 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
-