Record Class ImmutablePair<F,S>
java.lang.Object
java.lang.Record
top.r3944realms.superleadrope.core.util.ImmutablePair<F,S>
- 类型参数:
F- the type parameterS- the type parameter
The type Immutable pair.
-
构造器概要
构造器 -
方法概要
-
构造器详细资料
-
ImmutablePair
创建ImmutablePair记录的实例。- 参数:
first-first记录组件的值second-second记录组件的值
-
-
方法详细资料
-
of
Of immutable pair.- 类型参数:
F- the type parameterS- the type parameter- 参数:
first- the firstsecond- the second- 返回:
- the immutable pair
-
equals
重写equals方法 -
toString
重写toString方法便于调试 -
hashCode
public final int hashCode()返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。 -
first
返回first记录组件的值。- 返回:
first记录组件的值
-
second
返回second记录组件的值。- 返回:
second记录组件的值
-