Module com.darkcollective.relix.ast
Package com.darkcollective.relix.ast
Record Class IterateStop.Converged
java.lang.Object
java.lang.Record
com.darkcollective.relix.ast.IterateStop.Converged
- Record Components:
columns- the numeric columns tested for convergence; non-emptytolerance- the largest change still counted as converged; must be ≥ 0keys- the columns pairing a row with its counterpart in the previous round; non-emptyrounds- the round cap; must be ≥ 1
- All Implemented Interfaces:
IterateStop
- Enclosing interface:
IterateStop
public static record IterateStop.Converged(List<String> columns, BigDecimal tolerance, List<String> keys, int rounds)
extends Record
implements IterateStop
UNTIL c, … WITHIN ε PER k, … MAX n ROUNDS — stop when, for every key,
every named column changed by at most tolerance since the previous
round, and no key appeared or disappeared.-
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 TypeMethodDescriptioncolumns()Returns the value of thecolumnsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.keys()Returns the value of thekeysrecord component.introunds()Returns the value of theroundsrecord component.Returns the value of thetolerancerecord 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
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
columns
Returns the value of thecolumnsrecord component.- Returns:
- the value of the
columnsrecord component
-
tolerance
Returns the value of thetolerancerecord component.- Returns:
- the value of the
tolerancerecord component
-
keys
Returns the value of thekeysrecord component.- Returns:
- the value of the
keysrecord component
-
rounds
public int rounds()Returns the value of theroundsrecord component.- Specified by:
roundsin interfaceIterateStop- Returns:
- the value of the
roundsrecord component
-