1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-09-08 02:53:12 +02:00

new method isEmpty()

This commit is contained in:
Alain Magloire 2003-04-22 20:56:47 +00:00
parent ebc59cc62c
commit 8e88d4cc83

View file

@ -61,6 +61,14 @@ public class Queue {
return array;
}
public boolean isEmpty() {
boolean empty;
synchronized (list) {
empty = list.isEmpty();
}
return empty;
}
// private static void print(String msg) {
// String name = Thread.currentThread().getName();
// System.out.println(name + ": " + msg);