mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +00:00
fix build breakage due to missing isEmpty() methods
This commit is contained in:
@ -45,6 +45,10 @@ public class Collections {
|
||||
synchronized (lock) { return collection.size(); }
|
||||
}
|
||||
|
||||
public boolean isEmpty() {
|
||||
return size() == 0;
|
||||
}
|
||||
|
||||
public synchronized boolean contains(T e) {
|
||||
synchronized (lock) { return collection.contains(e); }
|
||||
}
|
||||
@ -77,7 +81,6 @@ public class Collections {
|
||||
public void addAll(Collection<T> c) {
|
||||
synchronized (lock) { ((Set<T>)collection).addAll(c); }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
static class SynchronizedIterator<T> implements Iterator<T> {
|
||||
|
Reference in New Issue
Block a user