Record Class TimeZoneMethodsRecord
java.lang.Object
java.lang.Record
com.oracle.truffle.js.runtime.builtins.temporal.TimeZoneMethodsRecord
- Record Components:
receiver- The time zone object, or a string indicating a built-in time zone. A String or Object.getOffsetNanosecondsFor- The time zone's getOffsetNanosecondsFor method. For a built-in time zone this is always %Temporal.TimeZone.prototype.getOffsetNanosecondsFor%. A function object or null.getPossibleInstantsFor- The time zone's getPossibleInstantsFor method. For a built-in time zone this is always %Temporal.TimeZone.prototype.getPossibleInstantsFor%. A function object or null.
public record TimeZoneMethodsRecord(Object receiver, Object getOffsetNanosecondsFor, Object getPossibleInstantsFor)
extends Record
Time Zone Methods Record.
Field values may be null in case they have not been read, and therefore must not be used.
Conversely, fields that have been read must not be null. The receiver must never be null.
-
Constructor Summary
ConstructorsConstructorDescriptionTimeZoneMethodsRecord(Object receiver, Object getOffsetNanosecondsFor) TimeZoneMethodsRecord(Object receiver, Object getOffsetNanosecondsFor, Object getPossibleInstantsFor) Creates an instance of aTimeZoneMethodsRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thegetOffsetNanosecondsForrecord component.Returns the value of thegetPossibleInstantsForrecord component.final inthashCode()Returns a hash code value for this object.receiver()Returns the value of thereceiverrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TimeZoneMethodsRecord
-
TimeZoneMethodsRecord
public TimeZoneMethodsRecord(Object receiver, Object getOffsetNanosecondsFor, Object getPossibleInstantsFor) Creates an instance of aTimeZoneMethodsRecordrecord class.- Parameters:
receiver- the value for thereceiverrecord componentgetOffsetNanosecondsFor- the value for thegetOffsetNanosecondsForrecord componentgetPossibleInstantsFor- the value for thegetPossibleInstantsForrecord 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). -
receiver
-
getOffsetNanosecondsFor
Returns the value of thegetOffsetNanosecondsForrecord component.- Returns:
- the value of the
getOffsetNanosecondsForrecord component
-
getPossibleInstantsFor
Returns the value of thegetPossibleInstantsForrecord component.- Returns:
- the value of the
getPossibleInstantsForrecord component
-