Class BunchMonitor
java.lang.Object
io.github.olyutorskii.aletojio.idling.AbstractRndMonitor
io.github.olyutorskii.aletojio.idling.BunchMonitor
- All Implemented Interfaces:
RndMonitor
Bunch of monitor.
Consolidate multiple monitors into one monitor.
Monitor all passed monitors for fulfillment of the condition.
If even one of the monitors does not meet the conditions, it is reflected as is.
-
Constructor Summary
ConstructorsConstructorDescriptionBunchMonitor
(RndMonitor... monsArg) Constructor.BunchMonitor
(Collection<RndMonitor> monsArg) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
probeImpl
(int iVal) Implement ofAbstractRndMonitor.probe(int)
.protected void
Implement ofAbstractRndMonitor.reset()
.Methods inherited from class io.github.olyutorskii.aletojio.idling.AbstractRndMonitor
hasMet, probe, reset
-
Constructor Details
-
BunchMonitor
Constructor.- Parameters:
monsArg
- monitors- Throws:
NullPointerException
- argument is null
-
BunchMonitor
Constructor.- Parameters:
monsArg
- monitors- Throws:
NullPointerException
- argument or any monitor are null
-
-
Method Details
-
resetImpl
protected void resetImpl()Implement ofAbstractRndMonitor.reset()
.- Specified by:
resetImpl
in classAbstractRndMonitor
-
probeImpl
protected boolean probeImpl(int iVal) Implement ofAbstractRndMonitor.probe(int)
.- Specified by:
probeImpl
in classAbstractRndMonitor
- Parameters:
iVal
- int value- Returns:
- true if
-