Package org.apache.pekko.japi
Class Pair<A,B>
java.lang.Object
org.apache.pekko.japi.Pair<A,B>
- All Implemented Interfaces:
Serializable,scala.Equals,scala.Product
Java API
Represents a pair (tuple) of two elements.
Additional tuple types for 3 to 22 values are defined in the org.apache.pekko.japi.tuple package, e.g. pekko.japi.tuple.Tuple3.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <A,B> Pair<A, B> apply(A first, B second) boolean<A,B> Pair<A, B> copy(A first, B second) <A,B> A <A,B> B static <A,B> Pair<A, B> create(A first, B second) booleanfirst()inthashCode()intproductElement(int x$1) productElementName(int x$1) scala.collection.Iterator<Object>second()toScala()toString()static <A,B> scala.Option<scala.Tuple2<A, B>> Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.Product
productElementNames
-
Constructor Details
-
Pair
-
-
Method Details
-
create
-
apply
-
unapply
-
first
-
second
-
toScala
-
copy
-
copy$default$1
public <A,B> A copy$default$1() -
copy$default$2
public <A,B> B copy$default$2() -
productPrefix
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArityin interfacescala.Product
-
productElement
- Specified by:
productElementin interfacescala.Product
-
productIterator
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode() -
toString
-
equals
-