1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-09-09 19:43:27 +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; return array;
} }
public boolean isEmpty() {
boolean empty;
synchronized (list) {
empty = list.isEmpty();
}
return empty;
}
// private static void print(String msg) { // private static void print(String msg) {
// String name = Thread.currentThread().getName(); // String name = Thread.currentThread().getName();
// System.out.println(name + ": " + msg); // System.out.println(name + ": " + msg);