mirror of
https://github.com/corda/corda.git
synced 2025-06-13 12:48:18 +00:00
implement TreeSet.toString()
This commit is contained in:
@ -17,6 +17,10 @@ public class TreeSet<T> implements Collection<T> {
|
||||
return new MyIterator<T>(set.first());
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return Collections.toString(this);
|
||||
}
|
||||
|
||||
public boolean add(T value) {
|
||||
PersistentSet.Path<Cell<T>> p = set.find(new Cell(value, null));
|
||||
if (p.fresh()) {
|
||||
|
Reference in New Issue
Block a user