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 Details

    • Result

      public Result(JSTemporalPlainDateObject plainRelativeTo, JSTemporalZonedDateTimeObject zonedRelativeTo, TimeZoneMethodsRecord timeZoneRec)
      Creates an instance of a Result record class.
      Parameters:
      plainRelativeTo - the value for the plainRelativeTo record component
      zonedRelativeTo - the value for the zonedRelativeTo record component
      timeZoneRec - the value for the timeZoneRec record component
  • Method Details

    • relativeTo

      public JSTemporalCalendarHolder relativeTo()
    • createCalendarMethodsRecord

      public CalendarMethodsRecord createCalendarMethodsRecord(CalendarMethodsRecordLookupNode lookupDateAddNode, CalendarMethodsRecordLookupNode lookupDateUntilNode)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • plainRelativeTo

      public JSTemporalPlainDateObject plainRelativeTo()
      Returns the value of the plainRelativeTo record component.
      Returns:
      the value of the plainRelativeTo record component
    • zonedRelativeTo

      public JSTemporalZonedDateTimeObject zonedRelativeTo()
      Returns the value of the zonedRelativeTo record component.
      Returns:
      the value of the zonedRelativeTo record component
    • timeZoneRec

      public TimeZoneMethodsRecord timeZoneRec()
      Returns the value of the timeZoneRec record component.
      Returns:
      the value of the timeZoneRec record component