it.amattioli.dominate.lazy
Class LazyList<T>

Show UML class diagram
java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<T>
          extended by it.amattioli.dominate.lazy.LazyList<T>
All Implemented Interfaces:
Lazy, Iterable<T>, Collection<T>, List<T>

public abstract class LazyList<T>
extends AbstractList<T>
implements Lazy


Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
LazyList()
           
 
Method Summary
 boolean add(T e)
           
protected abstract  List<T> findTarget()
           
 T get(int index)
           
 Iterator<T> iterator()
           
 int size()
           
 boolean wasLoaded()
           
 
Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Constructor Detail

LazyList

public LazyList()
Method Detail

findTarget

protected abstract List<T> findTarget()

iterator

public Iterator<T> iterator()
Specified by:
iterator in interface Iterable<T>
Specified by:
iterator in interface Collection<T>
Specified by:
iterator in interface List<T>
Overrides:
iterator in class AbstractList<T>

size

public int size()
Specified by:
size in interface Collection<T>
Specified by:
size in interface List<T>
Specified by:
size in class AbstractCollection<T>

add

public boolean add(T e)
Specified by:
add in interface Collection<T>
Specified by:
add in interface List<T>
Overrides:
add in class AbstractList<T>

get

public T get(int index)
Specified by:
get in interface List<T>
Specified by:
get in class AbstractList<T>

wasLoaded

public boolean wasLoaded()
Specified by:
wasLoaded in interface Lazy


Copyright © 2011. All Rights Reserved.