Record Class GetDifferenceSettingsNode.GetDifferenceSettingsResult
java.lang.Object
java.lang.Record
com.oracle.truffle.js.nodes.temporal.GetDifferenceSettingsNode.GetDifferenceSettingsResult
- Enclosing class:
GetDifferenceSettingsNode
public static record GetDifferenceSettingsNode.GetDifferenceSettingsResult(TemporalUtil.Unit smallestUnit, TemporalUtil.Unit largestUnit, TemporalUtil.RoundingMode roundingMode, int roundingIncrement)
extends Record
Record returned by the GetDifferenceSettings abstract operation.
-
Constructor Summary
ConstructorsConstructorDescriptionGetDifferenceSettingsResult(TemporalUtil.Unit smallestUnit, TemporalUtil.Unit largestUnit, TemporalUtil.RoundingMode roundingMode, int roundingIncrement) Creates an instance of aGetDifferenceSettingsResultrecord 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 thelargestUnitrecord component.intReturns the value of theroundingIncrementrecord component.Returns the value of theroundingModerecord component.Returns the value of thesmallestUnitrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GetDifferenceSettingsResult
public GetDifferenceSettingsResult(TemporalUtil.Unit smallestUnit, TemporalUtil.Unit largestUnit, TemporalUtil.RoundingMode roundingMode, int roundingIncrement) Creates an instance of aGetDifferenceSettingsResultrecord class.- Parameters:
smallestUnit- the value for thesmallestUnitrecord componentlargestUnit- the value for thelargestUnitrecord componentroundingMode- the value for theroundingModerecord componentroundingIncrement- the value for theroundingIncrementrecord 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. -
smallestUnit
Returns the value of thesmallestUnitrecord component.- Returns:
- the value of the
smallestUnitrecord component
-
largestUnit
Returns the value of thelargestUnitrecord component.- Returns:
- the value of the
largestUnitrecord component
-
roundingMode
Returns the value of theroundingModerecord component.- Returns:
- the value of the
roundingModerecord component
-
roundingIncrement
public int roundingIncrement()Returns the value of theroundingIncrementrecord component.- Returns:
- the value of the
roundingIncrementrecord component
-