com.netflix.discovery.shared
Class Pair<E1,E2>

java.lang.Object
  extended by com.netflix.discovery.shared.Pair<E1,E2>
Type Parameters:
E1 - Generics indicating the type information for the first one in the pair.
E2 - Generics indicating the type information for the second one in the pair.

public class Pair<E1,E2>
extends java.lang.Object

An utility class for stores any information that needs to exist as a pair.


Constructor Summary
Pair(E1 first, E2 second)
           
 
Method Summary
 E1 first()
           
 E2 second()
           
 void setFirst(E1 first)
           
 void setSecond(E2 second)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pair

public Pair(E1 first,
            E2 second)
Method Detail

first

public E1 first()

setFirst

public void setFirst(E1 first)

second

public E2 second()

setSecond

public void setSecond(E2 second)