LimeWire Collection Component API

org.limewire.collection
Class Tuple<T1,T2>

java.lang.Object
  extended by org.limewire.collection.Tuple<T1,T2>
Type Parameters:
T1 - the type of the first object
T2 - the type of the second object

public class Tuple<T1,T2>
extends Object

Typed tuple that holds two objects of possibly different types.


Constructor Summary
Tuple(T1 obj1, T2 obj2)
          Constructs a tuple for two objects.
 
Method Summary
 T1 getFirst()
          Returns the first object.
 T2 getSecond()
          Returns the second object.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Tuple

public Tuple(T1 obj1,
             T2 obj2)
Constructs a tuple for two objects.

Method Detail

getFirst

public T1 getFirst()
Returns the first object.


getSecond

public T2 getSecond()
Returns the second object.


toString

public String toString()
Overrides:
toString in class Object

LimeWire Collection Component API

Copyright © 2008 Lime Wire LLC. All Rights Reserved.