38 |
|
* copy-on-write set to maintain a set of Handler objects that |
39 |
|
* perform some action upon state updates. |
40 |
|
* |
41 |
< |
* <pre> {@code |
41 |
> |
* <pre> {@code |
42 |
|
* class Handler { void handle(); ... } |
43 |
|
* |
44 |
|
* class X { |
174 |
|
* The following code can be used to dump the set into a newly allocated |
175 |
|
* array of {@code String}: |
176 |
|
* |
177 |
< |
* <pre> {@code String[] y = x.toArray(new String[0]);}</pre> |
177 |
> |
* <pre> {@code String[] y = x.toArray(new String[0]);}</pre> |
178 |
|
* |
179 |
|
* Note that {@code toArray(new Object[0])} is identical in function to |
180 |
|
* {@code toArray()}. |