Joshua
open source statistical hierarchical phrase-based machine translation system
|
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 |
Represents a pair of elements.
<First> | Type of the first element in the pair. |
<Second> | Type of the second element in the pair. |
joshua.util.Pair< First, Second >.Pair | ( | First | first, |
Second | second | ||
) |
Constructs a pair of elements.
first | the first element in the pair |
second | the second element in the pair |
boolean joshua.util.Pair< First, Second >.equals | ( | Object | o | ) |
First joshua.util.Pair< First, Second >.getFirst | ( | ) |
Gets the second element in the pair
Second joshua.util.Pair< First, Second >.getSecond | ( | ) |
Gets 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.
first | the 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.
second | the new value for the second element in the pair |
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.