2017-01-15 16:00:44 -08:00
|
|
|
// lowlevel/IntTestable.java
|
2021-01-31 15:42:31 -07:00
|
|
|
// (c)2021 MindView LLC: see Copyright.txt
|
2017-01-15 16:00:44 -08:00
|
|
|
// We make no guarantees that this code is fit for any purpose.
|
|
|
|
// Visit http://OnJava8.com for more book information.
|
|
|
|
import java.util.function.*;
|
|
|
|
|
|
|
|
public abstract class
|
|
|
|
IntTestable implements Runnable, IntSupplier {
|
|
|
|
abstract void evenIncrement();
|
2021-01-31 15:42:31 -07:00
|
|
|
@Override public void run() {
|
2017-01-15 16:00:44 -08:00
|
|
|
while(true)
|
|
|
|
evenIncrement();
|
|
|
|
}
|
|
|
|
}
|