# | Line 13 | Line 13 | package java.util.concurrent; | |
---|---|---|
13 | * | |
14 | * <p> | |
15 | * The simplest implementation of this interface is just: | |
16 | < | * <pre> |
16 | > | * <pre> {@code |
17 | * class SimpleThreadFactory implements ThreadFactory { | |
18 | * public Thread newThread(Runnable r) { | |
19 | * return new Thread(r); | |
20 | * } | |
21 | < | * } |
22 | < | * </pre> |
21 | > | * }}</pre> |
22 | * | |
23 | * The {@link Executors#defaultThreadFactory} method provides a more | |
24 | * useful simple implementation, that sets the created thread context |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |