mirror of
https://github.com/corda/corda.git
synced 2025-06-19 07:38:22 +00:00
Implementing add(T element) in AbstractList, which just calls add(size(), element) and returns true per the spec.
This commit is contained in:
@ -15,6 +15,11 @@ public abstract class AbstractList<T> extends AbstractCollection<T>
|
|||||||
{
|
{
|
||||||
protected int modCount;
|
protected int modCount;
|
||||||
|
|
||||||
|
public boolean add(T o) {
|
||||||
|
add(size(), o);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
public Iterator<T> iterator() {
|
public Iterator<T> iterator() {
|
||||||
return listIterator();
|
return listIterator();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user