mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +00:00
add java.util.Collection.toArray()
This commit is contained in:
@ -81,6 +81,10 @@ public class Arrays {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
public Object[] toArray() {
|
||||
return toArray(new Object[size()]);
|
||||
}
|
||||
|
||||
public <S> S[] toArray(S[] a) {
|
||||
return (S[])array;
|
||||
}
|
||||
|
Reference in New Issue
Block a user