mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +00:00
Added methods isEmpty(), putAll(), toArray() to interfaces List and Map
This commit is contained in:
@ -38,6 +38,14 @@ public class Arrays {
|
||||
return array[index];
|
||||
}
|
||||
|
||||
public <S> S[] toArray(S[] a) {
|
||||
return (S[])array;
|
||||
}
|
||||
|
||||
public boolean isEmpty() {
|
||||
return size() == 0;
|
||||
}
|
||||
|
||||
public T remove(int index) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
Reference in New Issue
Block a user