com.twilio.jenkins
Class Pair<L,R>

java.lang.Object
  extended by com.twilio.jenkins.Pair<L,R>
Type Parameters:
L - the type of the left
R - the type of the right

public class Pair<L,R>
extends Object

A simple Pair implementation using generics.

Author:
Christer Fahlgren

Constructor Summary
Pair(L left, R right)
          Construct an immutable Pair, passing in the left and right attributes
 
Method Summary
 boolean equals(Object o)
          
 L getLeft()
          Returns the left attribute.
 R getRight()
          Returns the right attribute.
 int hashCode()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pair

public Pair(L left,
            R right)
Construct an immutable Pair, passing in the left and right attributes

Parameters:
left - the left attribute
right - the right attribute
Method Detail

getLeft

public L getLeft()
Returns the left attribute.

Returns:
the left attribute

getRight

public R getRight()
Returns the right attribute.

Returns:
the right attribute

hashCode

public int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object o)

Overrides:
equals in class Object


Copyright © 2004-2011. All Rights Reserved.