Record Class TemporalUtil.NormalizedDurationWithTotalRecord
java.lang.Object
java.lang.Record
com.oracle.truffle.js.runtime.util.TemporalUtil.NormalizedDurationWithTotalRecord
- Enclosing class:
TemporalUtil
public static record TemporalUtil.NormalizedDurationWithTotalRecord(NormalizedDurationRecord normalizedDuration, double total)
extends Record
RoundTimeDuration result.
-
Constructor Summary
ConstructorsConstructorDescriptionNormalizedDurationWithTotalRecord(NormalizedDurationRecord normalizedDuration, double total) Creates an instance of aNormalizedDurationWithTotalRecordrecord 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 thenormalizedDurationrecord component.final StringtoString()Returns a string representation of this record class.doubletotal()Returns the value of thetotalrecord component.
-
Constructor Details
-
NormalizedDurationWithTotalRecord
Creates an instance of aNormalizedDurationWithTotalRecordrecord class.- Parameters:
normalizedDuration- the value for thenormalizedDurationrecord 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. -
normalizedDuration
Returns the value of thenormalizedDurationrecord component.- Returns:
- the value of the
normalizedDurationrecord component
-
total
public double total()Returns the value of thetotalrecord component.- Returns:
- the value of the
totalrecord component
-