Record Class Runner.Phases
java.lang.Object
java.lang.Record
io.github.vecbricks.jegg.Runner.Phases
- Record Components:
searchNanos- the search phaseapplyNanos- the apply phaserebuildNanos- the rebuild
public static record Runner.Phases(long searchNanos, long applyNanos, long rebuildNanos)
extends Record
The wall time of one iteration's three phases, in nanoseconds (egg's
Iteration
carries the same three): searching every rule, applying every match, and the rebuild.
The hooks, the rebuild after them and the limit checks are outside the three.-
Constructor Summary
ConstructorsConstructorDescriptionPhases(long searchNanos, long applyNanos, long rebuildNanos) Creates an instance of aPhasesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theapplyNanosrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of therebuildNanosrecord component.longReturns the value of thesearchNanosrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Phases
public Phases(long searchNanos, long applyNanos, long rebuildNanos) Creates an instance of aPhasesrecord class.- Parameters:
searchNanos- the value for thesearchNanosrecord componentapplyNanos- the value for theapplyNanosrecord componentrebuildNanos- the value for therebuildNanosrecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
searchNanos
public long searchNanos()Returns the value of thesearchNanosrecord component.- Returns:
- the value of the
searchNanosrecord component
-
applyNanos
public long applyNanos()Returns the value of theapplyNanosrecord component.- Returns:
- the value of the
applyNanosrecord component
-
rebuildNanos
public long rebuildNanos()Returns the value of therebuildNanosrecord component.- Returns:
- the value of the
rebuildNanosrecord component
-