Package org.apache.storm.streams
Class Pair<T1,T2> 
java.lang.Object
org.apache.storm.streams.Pair<T1,T2> 
- All Implemented Interfaces:
- Serializable
A pair of values.
- See Also:
- 
Field SummaryFields
- 
Method Summary
- 
Field Details- 
value1The first value.
- 
value2The second value.
 
- 
- 
Method Details- 
ofConstructs a new pair of values.- Type Parameters:
- T1- the type of the first value
- T2- the type of the second value
- Parameters:
- first- the first value
- second- the second value
- Returns:
- a new pair of values
 
- 
getFirstReturns the first value in a pair.- Returns:
- the first value
 
- 
getSecondReturns the second value in a pair.- Returns:
- the second value
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-