akka.japi
Class Pair<A,B>
java.lang.Object
akka.japi.Pair<A,B>
- All Implemented Interfaces:
- java.io.Serializable, scala.Equals, scala.Product
public class Pair<A,B>
- extends java.lang.Object
- implements scala.Product, scala.Serializable
Java API
Represents a pair (tuple) of two elements.
Additional tuple types for 3 to 22 values are defined in the akka.japi.tuple
package, e.g. Tuple3
.
- See Also:
- Serialized Form
Constructor Summary |
Pair(A first,
B second)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface scala.Product |
productArity, productElement, productIterator, productPrefix |
Methods inherited from interface scala.Equals |
canEqual, equals |
Pair
public Pair(A first,
B second)
create
public static <A,B> Pair<A,B> create(A first,
B second)
first
public A first()
second
public B second()
toScala
public scala.Tuple2<A,B> toScala()