Joshua
open source statistical hierarchical phrase-based machine translation system
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
joshua.util.Pair< First, Second > Class Reference

List of all members.

Public Member Functions

 Pair (First first, Second second)
First getFirst ()
void setFirst (First first)
Second getSecond ()
void setSecond (Second second)
int hashCode ()
boolean equals (Object o)

Public Attributes

First first
Second second

Private Attributes

Integer hashCode = null

Detailed Description

Represents a pair of elements.

Author:
Lane Schwartz
Version:
$LastChangedDate$
Parameters:
<First>Type of the first element in the pair.
<Second>Type of the second element in the pair.

Constructor & Destructor Documentation

joshua.util.Pair< First, Second >.Pair ( First  first,
Second  second 
)

Constructs a pair of elements.

Parameters:
firstthe first element in the pair
secondthe second element in the pair

Member Function Documentation

boolean joshua.util.Pair< First, Second >.equals ( Object  o)
First joshua.util.Pair< First, Second >.getFirst ( )

Gets the second element in the pair

Returns:
the first element in the pair
Second joshua.util.Pair< First, Second >.getSecond ( )

Gets the second element in the pair.

Returns:
the second element in the pair
int joshua.util.Pair< First, Second >.hashCode ( )
void joshua.util.Pair< First, Second >.setFirst ( First  first)

Sets the first element in the pair.

Parameters:
firstthe new value for the first element in the pair
void joshua.util.Pair< First, Second >.setSecond ( Second  second)

Sets the second element in the pair.

Parameters:
secondthe new value for the second element in the pair

Member Data Documentation

First joshua.util.Pair< First, Second >.first

The first element of the pair.

Integer joshua.util.Pair< First, Second >.hashCode = null [private]
Second joshua.util.Pair< First, Second >.second

The second element of the pair.