Small changes to the Couple

This commit is contained in:
Olof Larsson 2013-09-30 20:09:33 +02:00
parent 6de0729328
commit af539e1a51

View File

@ -32,10 +32,15 @@ public class Couple<A, B> implements Entry<A, B>, Cloneable, Serializable
public Couple<A, B> withSecond(B second) { return valueOf(first, second); } public Couple<A, B> withSecond(B second) { return valueOf(first, second); }
// -------------------------------------------- // // -------------------------------------------- //
// PRIVATE CONSTRUCTOR // CONSTRUCT
// -------------------------------------------- // // -------------------------------------------- //
private Couple(A first, B second) public Couple()
{
this(null, null);
}
public Couple(A first, B second)
{ {
this.first = first; this.first = first;
this.second = second; this.second = second;