com.threerings.util
Class StreamableTuple<L,R>

java.lang.Object
  extended by com.samskivert.util.Tuple<L,R>
      extended by com.threerings.util.StreamableTuple<L,R>
Type Parameters:
L - the type of the left-hand side of this tuple.
R - the type of the right-hand side of this tuple.
All Implemented Interfaces:
Streamable, Serializable

public class StreamableTuple<L,R>
extends Tuple<L,R>
implements Streamable

A Tuple extension that can be streamed. The contents of the tuple must also be of streamable types.

See Also:
Streamable, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
Streamable.Closure
 
Field Summary
 
Fields inherited from class com.samskivert.util.Tuple
left, right
 
Constructor Summary
StreamableTuple(L left, R right)
          Constructs a tuple with the two specified objects.
 
Method Summary
static
<L,R> StreamableTuple<L,R>
newTuple(L left, R right)
          Creates a tuple with the specified two objects.
 
Methods inherited from class com.samskivert.util.Tuple
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StreamableTuple

public StreamableTuple(L left,
                       R right)
Constructs a tuple with the two specified objects.

Method Detail

newTuple

public static <L,R> StreamableTuple<L,R> newTuple(L left,
                                                  R right)
Creates a tuple with the specified two objects.