/** * Factory method to create a lazily instantiating list. * * @param list the list to decorate, must not be null * @param factory the factory to use for creation, must not be null * @throws IllegalArgumentException if list or factory is null */ public static List decorate(List list, Factory factory) { return new LazyList(list, factory); }
/** * Factory method to create a lazily instantiating list. * * @param list the list to decorate, must not be null * @param factory the factory to use for creation, must not be null * @throws IllegalArgumentException if list or factory is null */ public static List decorate(List list, Factory factory) { return new LazyList(list, factory); }
public List subList(int fromIndex, int toIndex) { List sub = getList().subList(fromIndex, toIndex); return new LazyList(sub, factory); }
public List subList(int fromIndex, int toIndex) { List sub = getList().subList(fromIndex, toIndex); return new LazyList(sub, factory); }
/** * Factory method to create a lazily instantiating list. * * @param list the list to decorate, must not be null * @param factory the factory to use for creation, must not be null * @throws IllegalArgumentException if list or factory is null */ public static List decorate(List list, Factory factory) { return new LazyList(list, factory); }
/** * Factory method to create a lazily instantiating list. * * @param list the list to decorate, must not be null * @param factory the factory to use for creation, must not be null * @throws IllegalArgumentException if list or factory is null */ public static List decorate(List list, Factory factory) { return new LazyList(list, factory); }
/** * Factory method to create a lazily instantiating list. * * @param list the list to decorate, must not be null * @param factory the factory to use for creation, must not be null * @throws IllegalArgumentException if list or factory is null */ public static List decorate(List list, Factory factory) { return new LazyList(list, factory); }
/** * Factory method to create a lazily instantiating list. * * @param list the list to decorate, must not be null * @param factory the factory to use for creation, must not be null * @throws IllegalArgumentException if list or factory is null */ public static List decorate(List list, Factory factory) { return new LazyList(list, factory); }
/** * Factory method to create a lazily instantiating list. * * @param list the list to decorate, must not be null * @param factory the factory to use for creation, must not be null * @throws IllegalArgumentException if list or factory is null */ public static List decorate(List list, Factory factory) { return new LazyList(list, factory); }
public List subList(int fromIndex, int toIndex) { List sub = getList().subList(fromIndex, toIndex); return new LazyList(sub, factory); }
public List subList(int fromIndex, int toIndex) { List sub = getList().subList(fromIndex, toIndex); return new LazyList(sub, factory); }
public List subList(int fromIndex, int toIndex) { List sub = getList().subList(fromIndex, toIndex); return new LazyList(sub, factory); }
public List subList(int fromIndex, int toIndex) { List sub = getList().subList(fromIndex, toIndex); return new LazyList(sub, factory); }
public List subList(int fromIndex, int toIndex) { List sub = getList().subList(fromIndex, toIndex); return new LazyList(sub, factory); }