|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ru.yandex.bolts.collection.Tuple2<T1,T2>
public class Tuple2<T1,T2>
Pair.
Tuple3
,
Tuple4
,
P2
,
Serialized FormConstructor Summary | |
---|---|
Tuple2(T1 _1,
T2 _2)
|
Method Summary | ||
---|---|---|
static
|
consF()
Constructor function |
|
static
|
consM()
Deprecated. |
|
boolean |
equals(Object o)
|
|
T1 |
get1()
First |
|
static
|
get1F()
_1 as function |
|
static
|
get1M()
Deprecated. |
|
T2 |
get2()
Second |
|
static
|
get2F()
_2 as function |
|
static
|
get2M()
Deprecated. |
|
int |
hashCode()
|
|
static
|
map1F(Function<A,C> m)
|
|
static
|
map1M(Function<A,C> m)
Deprecated. |
|
static
|
map2F(Function<B,C> m)
|
|
static
|
map2M(Function<B,C> m)
Deprecated. |
|
|
reduce(Function2<T1,T2,R> bf)
|
|
Tuple2<T2,T1> |
swap()
|
|
static
|
swapF()
swap() as function |
|
static
|
swapM()
Deprecated. |
|
String |
toString()
|
|
static
|
tuple(A a,
B b)
Construct |
|
|
uncheckedCast()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Tuple2(T1 _1, T2 _2)
Method Detail |
---|
public T1 get1()
public T2 get2()
public <R> R reduce(Function2<T1,T2,R> bf)
public Tuple2<T2,T1> swap()
public <T3,T4> Tuple2<T3,T4> uncheckedCast()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public static <A,B> Function2<A,B,Tuple2<A,B>> consM()
public static <A,B> Function2<A,B,Tuple2<A,B>> consF()
public static <A,B> Function<Tuple2<A,B>,A> get1M()
public static <A,B> Function<Tuple2<A,B>,A> get1F()
public static <A,B> Function<Tuple2<A,B>,B> get2M()
public static <A,B> Function<Tuple2<A,B>,B> get2F()
public static <A,B> Function<Tuple2<A,B>,Tuple2<B,A>> swapM()
public static <A,B> Function<Tuple2<A,B>,Tuple2<B,A>> swapF()
swap()
as function
public static <A,B,C> Function<Tuple2<A,B>,Tuple2<C,B>> map1M(Function<A,C> m)
public static <A,B,C> Function<Tuple2<A,B>,Tuple2<C,B>> map1F(Function<A,C> m)
public static <A,B,C> Function<Tuple2<A,B>,Tuple2<A,C>> map2M(Function<B,C> m)
public static <A,B,C> Function<Tuple2<A,B>,Tuple2<A,C>> map2F(Function<B,C> m)
public static <A,B> Tuple2<A,B> tuple(A a, B b)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |