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:
@ -62,6 +62,10 @@ public abstract class AbstractCollection<T> implements Collection<T> {
|
||||
|
||||
public abstract int size();
|
||||
|
||||
public Object[] toArray() {
|
||||
return toArray(new Object[size()]);
|
||||
}
|
||||
|
||||
public <S> S[] toArray(S[] array) {
|
||||
return Collections.toArray(this, array);
|
||||
}
|
||||
|
Reference in New Issue
Block a user