mirror of
https://github.com/corda/corda.git
synced 2025-06-14 05:08:18 +00:00
Add meaningful toString() methods
This commit is contained in:
@ -174,4 +174,8 @@ public class ArrayList<T> implements List<T> {
|
|||||||
public ListIterator<T> listIterator(int index) {
|
public ListIterator<T> listIterator(int index) {
|
||||||
return new Collections.ArrayListIterator(this, 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);
|
return new MyIterator(front);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String toString() {
|
||||||
|
return Collections.toString(this);
|
||||||
|
}
|
||||||
|
|
||||||
private static class Cell<T> {
|
private static class Cell<T> {
|
||||||
public T value;
|
public T value;
|
||||||
public Cell<T> prev;
|
public Cell<T> prev;
|
||||||
|
Reference in New Issue
Block a user