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:
@ -10,7 +10,7 @@
|
||||
|
||||
package java.util;
|
||||
|
||||
public class HashSet<T> implements Set<T> {
|
||||
public class HashSet<T> extends AbstractSet<T> implements Set<T> {
|
||||
private static final Object Value = new Object();
|
||||
|
||||
private final HashMap<T, Object> map;
|
||||
@ -54,10 +54,6 @@ public class HashSet<T> implements Set<T> {
|
||||
return map.remove(element) != Value;
|
||||
}
|
||||
|
||||
public <T> T[] toArray(T[] array) {
|
||||
return Collections.toArray(this, array);
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
map.clear();
|
||||
}
|
||||
|
Reference in New Issue
Block a user