Module com.darkcollective.relix.ast
Package com.darkcollective.relix.ast
Record Class IterateStop.Stable
java.lang.Object
java.lang.Record
com.darkcollective.relix.ast.IterateStop.Stable
- Record Components:
rounds- the round cap; must be ≥ 1
- All Implemented Interfaces:
IterateStop
- Enclosing interface:
IterateStop
UNTIL STABLE MAX n ROUNDS — stop at the first round whose output
equals its input.-
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
-
Stable
public Stable(int rounds) Creates an instance of aStablerecord 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
-