com.google.gson.internal
Class Pair<FIRST,SECOND>

java.lang.Object
  extended by com.google.gson.internal.Pair<FIRST,SECOND>
Type Parameters:
FIRST -
SECOND -

public final class Pair<FIRST,SECOND>
extends java.lang.Object

A simple object that holds onto a pair of object references, first and second.

Author:
Inderjeet Singh, Joel Leitch

Field Summary
 FIRST first
           
 SECOND second
           
 
Constructor Summary
Pair(FIRST first, SECOND second)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

first

public final FIRST first

second

public final SECOND second
Constructor Detail

Pair

public Pair(FIRST first,
            SECOND second)
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object