Module com.darkcollective.relix.ast
Package com.darkcollective.relix.ast
Record Class IterateStop.Rounds
java.lang.Object
java.lang.Record
com.darkcollective.relix.ast.IterateStop.Rounds
- Record Components:
rounds- the number of rounds; must be ≥ 0
- All Implemented Interfaces:
IterateStop
- Enclosing interface:
IterateStop
ROUNDS n — apply the step exactly n times; ROUNDS 0
is the base unchanged.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.darkcollective.relix.ast.IterateStop
IterateStop.Converged, IterateStop.Rounds, IterateStop.Stable -
Constructor Summary
Constructors -
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.introunds()Returns the value of theroundsrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.darkcollective.relix.ast.IterateStop
clause
-
Constructor Details
-
Rounds
public Rounds(int rounds) Creates an instance of aRoundsrecord class.- Parameters:
rounds- the value for theroundsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
rounds
public int rounds()Returns the value of theroundsrecord component.- Specified by:
roundsin interfaceIterateStop- Returns:
- the value of the
roundsrecord component
-