Package groovy.lang

Class ListWithDefault<T>

java.lang.Object
groovy.lang.ListWithDefault<T>
All Implemented Interfaces:
Iterable<T>, Collection<T>, List<T>

public final class ListWithDefault<T>
extends Object
implements List<T>
A wrapper for List which automatically grows the list when either get(int) or getAt(int) is called with an index greater than or equal to size().
Since:
1.8.7