49 |
|
* tie-breaking to comparable elements. To use it, you would insert a |
50 |
|
* {@code new FIFOEntry(anEntry)} instead of a plain entry object. |
51 |
|
* |
52 |
< |
* <pre> {@code |
52 |
> |
* <pre> {@code |
53 |
|
* class FIFOEntry<E extends Comparable<? super E>> |
54 |
|
* implements Comparable<FIFOEntry<E>> { |
55 |
|
* static final AtomicLong seq = new AtomicLong(0); |
799 |
|
* The following code can be used to dump the queue into a newly |
800 |
|
* allocated array of {@code String}: |
801 |
|
* |
802 |
< |
* <pre> {@code String[] y = x.toArray(new String[0]);}</pre> |
802 |
> |
* <pre> {@code String[] y = x.toArray(new String[0]);}</pre> |
803 |
|
* |
804 |
|
* Note that {@code toArray(new Object[0])} is identical in function to |
805 |
|
* {@code toArray()}. |