com.xebialabs.deployit.mapper
Class Pair<X,Y>

java.lang.Object
  extended by com.xebialabs.deployit.mapper.Pair<X,Y>
Type Parameters:
X - the type of the first element of the pair.
Y - the type of the second element of the pair.
All Implemented Interfaces:
java.io.Serializable

public class Pair<X,Y>
extends java.lang.Object
implements java.io.Serializable

A pair of objects.

See Also:
Serialized Form

Constructor Summary
Pair(X first, Y second)
          Creates a Pair with the specified elements.
 
Method Summary
 X getFirst()
          Returns the first element.
 Y getSecond()
          Returns the second element.
 void setFirst(X first)
          Set the first element of the pair.
 void setSecond(Y second)
          Set the second element of the pair.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pair

public Pair(X first,
            Y second)
Creates a Pair with the specified elements.

Parameters:
first - the first element
second - the second element
Method Detail

getFirst

public X getFirst()
Returns the first element.

Returns:
the first element

setFirst

public void setFirst(X first)
Set the first element of the pair.

Parameters:
first - the first element

getSecond

public Y getSecond()
Returns the second element.

Returns:
the second element

setSecond

public void setSecond(Y second)
Set the second element of the pair.

Parameters:
second - the second element


Copyright © 2010. All Rights Reserved.