类 Pair<F,S>
java.lang.Object
org.beetl.core.util.Pair<F,S>
Container to ease passing around a tuple of two objects. This object provides a sensible
implementation of equals(), returning true if equals() is true on each of the contained
objects.
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static <A,B> Pair<A, B> create(A a, B b) Convenience method for creating an appropriately typed pair.booleanChecks the two objects for equality by delegating to their respectiveObject.equals(Object)methods.inthashCode()Compute a hash code using the hash codes of the underlying objectstoString()
-
字段详细资料
-
first
-
second
-
-
构造器详细资料
-
Pair
Constructor for a Pair.- 参数:
first- the first object in the Pairsecond- the second object in the pair
-
-
方法详细资料
-
equals
Checks the two objects for equality by delegating to their respectiveObject.equals(Object)methods. -
hashCode
public int hashCode()Compute a hash code using the hash codes of the underlying objects -
toString
-
create
Convenience method for creating an appropriately typed pair.- 参数:
a- the first object in the Pairb- the second object in the pair- 返回:
- a Pair that is templatized with the types of a and b
-