public class Pair<F,S> extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static <A,B> Pair<A,B> |
create(A a,
B b)
Convenience method for creating an appropriately typed pair.
|
boolean |
equals(Object o)
Checks the two objects for equality by delegating to their respective
Object.equals(Object) methods. |
int |
hashCode()
Compute a hash code using the hash codes of the underlying objects
|
String |
toString() |
public boolean equals(Object o)
Object.equals(Object) methods.public int hashCode()
public static <A,B> Pair<A,B> create(A a, B b)
a - the first object in the Pairb - the second object in the pairCopyright © 2021. All rights reserved.