ref_send API 2.17
defensive programming in Java

org.waterken.serial
Class Link<T>

java.lang.Object
  extended by org.joe_e.Struct
      extended by org.waterken.serial.Link<T>
Type Parameters:
T - value type
All Implemented Interfaces:
java.io.Serializable, Selfless, Record, Element<T>

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

A resolved element of a series.

See Also:
Serialized Form

Field Summary
 Element<T> next
          next element
 Promise<T> value
          element value
 
Constructor Summary
Link(Promise<T> value, Element<T> next)
          Constructs an instance.
 
Method Summary
 Element<T> getNext()
          next element
 Promise<T> getValue()
          element value
static
<T> Element<T>
link(Promise<T> value, Element<T> next)
          Constructs an instance.
 
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

value

public final Promise<T> value
element value


next

public final Element<T> next
next element

Constructor Detail

Link

public Link(Promise<T> value,
            Element<T> next)
Constructs an instance.

Parameters:
value - value
next - next
Method Detail

link

public static <T> Element<T> link(Promise<T> value,
                                  Element<T> next)
Constructs an instance.

Type Parameters:
T - value type
Parameters:
value - value
next - next

getValue

public Promise<T> getValue()
Description copied from interface: Element
element value

Specified by:
getValue in interface Element<T>

getNext

public Element<T> getNext()
Description copied from interface: Element
next element

Specified by:
getNext in interface Element<T>

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.