mirror of
https://github.com/corda/corda.git
synced 2025-01-03 19:54:13 +00:00
Add meaningful toString() methods
This commit is contained in:
parent
00cfa587bc
commit
9d3027540b
@ -174,4 +174,8 @@ public class ArrayList<T> implements List<T> {
|
||||
public ListIterator<T> listIterator(int index) {
|
||||
return new Collections.ArrayListIterator(this, index);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return Collections.toString(this);
|
||||
}
|
||||
}
|
||||
|
@ -196,6 +196,10 @@ public class LinkedList<T> implements List<T> {
|
||||
return new MyIterator(front);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return Collections.toString(this);
|
||||
}
|
||||
|
||||
private static class Cell<T> {
|
||||
public T value;
|
||||
public Cell<T> prev;
|
||||
|
Loading…
Reference in New Issue
Block a user