Class Tuple2<T1,T2>
- java.lang.Object
-
- com.moilioncircle.redis.replicator.util.type.Tuple2<T1,T2>
-
- All Implemented Interfaces:
Serializable,Iterable<Object>
public class Tuple2<T1,T2> extends Object implements Iterable<Object>, Serializable
- Author:
- Leon Chen
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static <V> Tuple2<V,V>from(Iterable<V> iterable)static <V> Tuple2<V,V>from(Collection<V> collection)static <V> Tuple2<V,V>from(Iterator<V> iterator)static <V> Tuple2<V,V>from(V... ary)T1getV1()T2getV2()inthashCode()Iterator<Object>iterator()<V1,V2>
Tuple2<V1,V2>map(Function<Tuple2<T1,T2>,Tuple2<V1,V2>> function)voidsetV1(T1 v1)voidsetV2(T2 v2)Object[]toArray()<T> T[]toArray(Class<T> clazz)<T> TtoObject(Function<Tuple2<T1,T2>,T> func)StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
getV1
public T1 getV1()
-
getV2
public T2 getV2()
-
setV1
public void setV1(T1 v1)
-
setV2
public void setV2(T2 v2)
-
from
public static <V> Tuple2<V,V> from(V... ary)
-
from
public static <V> Tuple2<V,V> from(Collection<V> collection)
-
toArray
public Object[] toArray()
-
toArray
public <T> T[] toArray(Class<T> clazz)
-
-