java.lang.Object
io.github.romanhaendler.rbed.Conditions
Static factories for building Conditions; intended for static import.
-
Method Summary
Modifier and TypeMethodDescriptionstatic AfterTrue once an Event of the given Rule has Ended; seeAfterfor narrowing it.static EventCountThe number of Events of the given Rule Confirmed since the Detector started, History included; narrow it withEventCount.within(long).static ConditionTrue while an Event of the given Rule is Confirmed and has not Ended.static LatestEventValues of the most recent Confirmed Event of the given Rule, running or Ended, such aslatest(loadLifted).max(weight).static ExpressiontotalDuration(Rule rule) The summed duration in milliseconds of all Events of the given Rule since the Detector started, History included: Ended ones in full, plus a Confirmed running one up to now.
-
Method Details
-
during
True while an Event of the given Rule is Confirmed and has not Ended. -
after
True once an Event of the given Rule has Ended; seeAfterfor narrowing it. -
count
The number of Events of the given Rule Confirmed since the Detector started, History included; narrow it withEventCount.within(long). -
totalDuration
The summed duration in milliseconds of all Events of the given Rule since the Detector started, History included: Ended ones in full, plus a Confirmed running one up to now. -
latest
Values of the most recent Confirmed Event of the given Rule, running or Ended, such aslatest(loadLifted).max(weight).
-