org.javimmutable.collections
Class Tuple2<A,B>

java.lang.Object
  extended by org.javimmutable.collections.Tuple2<A,B>
Type Parameters:
A -
B -

@Immutable
public class Tuple2<A,B>
extends Object

Immutable container for 2 values.


Constructor Summary
Tuple2(A first, B second)
           
 
Method Summary
 boolean equals(Object o)
           
 A getFirst()
           
 B getSecond()
           
 int hashCode()
           
static
<A,B> Tuple2<A,B>
of(A first, B second)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tuple2

public Tuple2(A first,
              B second)
Method Detail

of

public static <A,B> Tuple2<A,B> of(A first,
                                   B second)

getFirst

public A getFirst()

getSecond

public B getSecond()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2014 Burton Computer Corporation. All rights reserved.