Record Class TemporalUtil.NormalizedTimeDurationWithTotalRecord
java.lang.Object
java.lang.Record
com.oracle.truffle.js.runtime.util.TemporalUtil.NormalizedTimeDurationWithTotalRecord
- Enclosing class:
TemporalUtil
public static record TemporalUtil.NormalizedTimeDurationWithTotalRecord(BigInt normalizedTimeDuration, double total)
extends Record
DifferenceInstant result.
-
Constructor Summary
ConstructorsConstructorDescriptionNormalizedTimeDurationWithTotalRecord(BigInt normalizedTimeDuration, double total) Creates an instance of aNormalizedTimeDurationWithTotalRecordrecord 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 thenormalizedTimeDurationrecord component.final StringtoString()Returns a string representation of this record class.doubletotal()Returns the value of thetotalrecord component.
-
Constructor Details
-
NormalizedTimeDurationWithTotalRecord
Creates an instance of aNormalizedTimeDurationWithTotalRecordrecord class.- Parameters:
normalizedTimeDuration- the value for thenormalizedTimeDurationrecord componenttotal- the value for thetotalrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
normalizedTimeDuration
Returns the value of thenormalizedTimeDurationrecord component.- Returns:
- the value of the
normalizedTimeDurationrecord component
-
total
public double total()Returns the value of thetotalrecord component.- Returns:
- the value of the
totalrecord component
-