1 |
|
/* |
2 |
< |
* Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. |
2 |
> |
* Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved. |
3 |
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
|
* |
5 |
|
* This code is free software; you can redistribute it and/or modify it |
64 |
|
public int compare(String x, String y) { |
65 |
|
return x.charAt(0) - y.charAt(0); }}; |
66 |
|
|
67 |
+ |
test(new PriorityQueue<String>(firstChar)); |
68 |
|
test(new PriorityQueue<String>(10, firstChar)); |
69 |
|
test(new PriorityBlockingQueue<String>(10, firstChar)); |
70 |
|
test(new ArrayBlockingQueue<String>(10)); |