org.javimmutable.collections
Class Tuple2<A,B>
java.lang.Object
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)
|
Tuple2
public Tuple2(A first,
B second)
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.