org.glassfish.jersey.internal.util.collection
Interface Pair<L,R>

Type Parameters:
L - type of the left value in the Pair
R - type of the right value in the Pair

public interface Pair<L,R>

Represents a pair (tuple of 2) of values of two arbitrary types.

Author:
Paul Sandoz, Marek Potociar (marek.potociar at oracle.com)
See Also:
Tuples

Method Summary
 L left()
          Left-hand instance in the Pair.
 R right()
          Right-hand instance in the Pair.
 

Method Detail

left

L left()
Left-hand instance in the Pair.

Returns:
left-hand instance in the Pair

right

R right()
Right-hand instance in the Pair.

Returns:
right-hand instance in the Pair


Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.