Cambridge SMT System
uk.ac.cam.eng.util.Pair< T, U > Class Template Reference

Public Member Functions

 Pair ()
 
 Pair (T first, U second)
 
getFirst ()
 
void setFirst (T first)
 
getSecond ()
 
void setSecond (U second)
 
String toString ()
 
int hashCode ()
 
boolean equals (Object obj)
 

Static Public Member Functions

static< F, S > Pair< F, S > createPair (F first, S second)
 

Detailed Description

Author
Juan Pino
Date
28 May 2014
Parameters
<T>
<U>

Definition at line 29 of file Pair.java.

Constructor & Destructor Documentation

uk.ac.cam.eng.util.Pair< T, U >.Pair ( )
inline

Definition at line 34 of file Pair.java.

uk.ac.cam.eng.util.Pair< T, U >.Pair ( first,
second 
)
inline
Parameters
first
second

Definition at line 41 of file Pair.java.

Member Function Documentation

static <F, S> Pair<F, S> uk.ac.cam.eng.util.Pair< T, U >.createPair ( F  first,
second 
)
inlinestatic

Definition at line 46 of file Pair.java.

Here is the caller graph for this function:

boolean uk.ac.cam.eng.util.Pair< T, U >.equals ( Object  obj)
inline

Definition at line 93 of file Pair.java.

T uk.ac.cam.eng.util.Pair< T, U >.getFirst ( )
inline
Returns
the first

Definition at line 53 of file Pair.java.

Here is the caller graph for this function:

U uk.ac.cam.eng.util.Pair< T, U >.getSecond ( )
inline
Returns
the second

Definition at line 67 of file Pair.java.

Here is the caller graph for this function:

int uk.ac.cam.eng.util.Pair< T, U >.hashCode ( )
inline

Definition at line 84 of file Pair.java.

void uk.ac.cam.eng.util.Pair< T, U >.setFirst ( first)
inline
Parameters
firstthe first to set

Definition at line 60 of file Pair.java.

void uk.ac.cam.eng.util.Pair< T, U >.setSecond ( second)
inline
Parameters
secondthe second to set

Definition at line 74 of file Pair.java.

String uk.ac.cam.eng.util.Pair< T, U >.toString ( )
inline

Definition at line 79 of file Pair.java.


The documentation for this class was generated from the following file: