ref_send API 2.17
defensive programming in Java

org.ref_send.promise
Class Deferred<T>

java.lang.Object
  extended by org.joe_e.Struct
      extended by org.ref_send.promise.Deferred<T>
Type Parameters:
T - referent type
All Implemented Interfaces:
java.io.Serializable, Selfless, Record

public class Deferred<T>
extends Struct
implements Record, java.io.Serializable

A return from an explicit promise creation.

This class represents the reified tail and head of a reference: -->.

See Also:
Serialized Form

Field Summary
 Promise<T> promise
          permission to access the referent
 Resolver<T> resolver
          permission to resolve the referent
 
Constructor Summary
Deferred(Promise<T> promise, Resolver<T> resolver)
          Constructs an instance.
 
Method Summary
 
Methods inherited from class org.joe_e.Struct
equals, hashCode
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.joe_e.Selfless
hashCode
 

Field Detail

promise

public final Promise<T> promise
permission to access the referent


resolver

public final Resolver<T> resolver
permission to resolve the referent

Constructor Detail

Deferred

public Deferred(Promise<T> promise,
                Resolver<T> resolver)
Constructs an instance.

Parameters:
promise - promise
resolver - resolver

ref_send API 2.17
defensive programming in Java

Submit a bug or feature, or get help

Copyright 1998-2009 Waterken Inc. under the terms of the MIT X license.