Record Class Applied
java.lang.Object
java.lang.Record
io.github.vecbricks.jegg.Applied
- Record Components:
unions- the unions that merged two classescounted- what egg's runner would count as applied
What applying one match did, in the two senses a run needs.
unions is the number of
unions that changed the graph. counted is the number egg's runner counts as applied:
the same for a rule whose right-hand side is a pattern or a function, but one per match for a
right-hand side that is a multi-pattern (Applier.multi(MultiPattern)), whose egg
apply_matches returns an id for every substitution whether or not a union changed
anything. A run saturates only in an iteration in which nothing was counted. The left-hand
side does not decide: a multi-pattern searched and a pattern applied counts unions.-
Constructor Summary
ConstructorsConstructorDescriptionApplied(int unions, int counted) Creates an instance of aAppliedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcounted()Returns the value of thecountedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.intunions()Returns the value of theunionsrecord component.
-
Constructor Details
-
Applied
-
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
unions
-
counted
-