11.10 Map

This commit is contained in:
2018-06-17 19:26:58 +08:00
commit c47f63d484
879 changed files with 39735 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
package concurrency;//: concurrency/IntGenerator.java
public abstract class IntGenerator {
private volatile boolean canceled = false;
public abstract int next();
// Allow this to be canceled:
public void cancel() { canceled = true; }
public boolean isCanceled() { return canceled; }
} ///:~