Class UniqRunMonitor
java.lang.Object
io.github.olyutorskii.aletojio.idling.AbstractRndMonitor
io.github.olyutorskii.aletojio.idling.UniqRunMonitor
- All Implemented Interfaces:
RndMonitor
Monitor the occurrence of consecutive unique byte values.
-
Constructor Summary
Constructors -
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
-
UniqRunMonitor
public UniqRunMonitor(int goalArg) Constructor.- Parameters:
goalArg
- goal length of unique byte value sequence- Throws:
IllegalArgumentException
- max must be between 1 and 256
-
UniqRunMonitor
public UniqRunMonitor()Constructor.unique bytes goal length is 32.
-
-
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
-