Record Class ISODateRecord
java.lang.Object
java.lang.Record
com.oracle.truffle.js.runtime.builtins.temporal.ISODateRecord
- Record Components:
year- The year in the ISO 8601 calendar. An integer.month- The number of the month. An integer between 1 and 12, inclusive.day- The number of the day of the month. An integer between 1 and 31, inclusive.
An ISO Date Record is used to represent a valid calendar date in the ISO 8601 calendar, although
the year may be outside of the allowed range for Temporal. ISO Date Records are produced by the
abstract operation CreateISODateRecord.
-
Constructor Summary
ConstructorsConstructorDescriptionISODateRecord(int year, int month, int day) Creates an instance of aISODateRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintday()Returns the value of thedayrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intmonth()Returns the value of themonthrecord component.final StringtoString()Returns a string representation of this record class.intyear()Returns the value of theyearrecord component.
-
Constructor Details
-
ISODateRecord
-
-
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 with thecomparemethod from their corresponding wrapper classes. -
year
-
month
-
day
-