A - the type of the first elementB - the type or the second elementpublic class T2<A,B>
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
A |
_1
The first element
|
B |
_2
The second element
|
| Constructor and Description |
|---|
T2(A _1,
B _2)
Creates a new tuple instance
|
| Modifier and Type | Method and Description |
|---|---|
<C> T3<A,B,C> |
and(C c) |
boolean |
equals(java.lang.Object obj) |
T2<B,A> |
flip()
Returns a tuple with the same elements as this one, but in the reverse
order
|
int |
hashCode() |
static <A,B> T2<A,B> |
of(A a,
B b) |
java.lang.String |
toString() |
public static <A,B> T2<A,B> of(A a, B b)
public T2<B,A> flip()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2018. All Rights Reserved.