net.sf.retrotranslator.runtime.impl
Class LazyList<I,R>

java.lang.Object
  extended by net.sf.retrotranslator.runtime.impl.LazyList<I,R>

public abstract class LazyList<I,R>
extends java.lang.Object

Author:
Taras Puchko

Field Summary
private  java.util.List<I> inputs
           
private  R[] results
           
 
Constructor Summary
LazyList()
           
 
Method Summary
 void add(I input)
           
 I get(int index)
           
 R[] getClone()
           
 I getLast()
           
 R[] getLive()
           
protected abstract  R[] newArray(int size)
           
protected abstract  R resolve(I input)
           
 void set(int index, I element)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inputs

private java.util.List<I> inputs

results

private R[] results
Constructor Detail

LazyList

public LazyList()
Method Detail

add

public void add(I input)

getLast

public I getLast()

get

public I get(int index)

set

public void set(int index,
                I element)

getLive

public final R[] getLive()

getClone

public final R[] getClone()

resolve

protected abstract R resolve(I input)

newArray

protected abstract R[] newArray(int size)