mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
implement HashSet.toString
This commit is contained in:
parent
c8cc7d931b
commit
9017b5996a
@ -66,6 +66,10 @@ public class HashSet<T> implements Set<T> {
|
||||
return new MyIterator(map.iterator());
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return Collections.toString(this);
|
||||
}
|
||||
|
||||
private static class MyIterator<T> implements Iterator<T> {
|
||||
private final Iterator<Map.Entry<T, Object>> it;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user