org.littleshoot.util
Interface Pair<T1,T2>

Type Parameters:
T1 - The type of the first element of this pair.
T2 - The type of the second element of this pair.
All Known Implementing Classes:
PairImpl

public interface Pair<T1,T2>

A pair of objects. It is often useful to represent pairs of objects. This interface provides a type-safe and reusable way of doing so.


Method Summary
 T1 getFirst()
          Returns the first object in the pair.
 T2 getSecond()
          Returns the second object in the pair.
 

Method Detail

getFirst

T1 getFirst()
Returns the first object in the pair.

Returns:
The first object in the pair.

getSecond

T2 getSecond()
Returns the second object in the pair.

Returns:
The second object in the pair.


Copyright © 2011-2013 LittleShoot. All Rights Reserved.