edu.neu.ccs.demeterf.lazy
Class Thunk<T>

java.lang.Object
  extended by edu.neu.ccs.demeterf.lazy.Thunk<T>

public class Thunk<T>
extends java.lang.Object

Represents a function which does the traversal of an Object and returns the result... but only when asked.


Method Summary
static
<S> Thunk<S>
create(java.lang.Object o, Traversal t)
           
 T go()
           
 T go(java.lang.Object o)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static <S> Thunk<S> create(java.lang.Object o,
                                  Traversal t)

go

public T go()

go

public T go(java.lang.Object o)