Package ch.njol.util
Class Pair<T1,T2>
java.lang.Object
ch.njol.util.Pair<T1,T2>
- All Implemented Interfaces:
Serializable
,Cloneable
,Map.Entry<T1,
T2>
- Direct Known Subclasses:
NonNullPair
@Deprecated(since="2.10.0",
forRemoval=true)
public class Pair<T1,T2>
extends Object
implements Map.Entry<T1,T2>, Cloneable, Serializable
Deprecated, for removal: This API element is subject to removal in a future version.
Use a use-case specific record instead.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPair()
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Deprecated, for removal: This API element is subject to removal in a future version.final boolean
Deprecated, for removal: This API element is subject to removal in a future version.Checks for equality with Entries to matchhashCode()
@UnknownNullability T1
getFirst()
Deprecated, for removal: This API element is subject to removal in a future version.@UnknownNullability T1
getKey()
Deprecated, for removal: This API element is subject to removal in a future version.@UnknownNullability T2
Deprecated, for removal: This API element is subject to removal in a future version.@UnknownNullability T2
getValue()
Deprecated, for removal: This API element is subject to removal in a future version.final int
hashCode()
Deprecated, for removal: This API element is subject to removal in a future version.As defined byMap.Entry.hashCode()
void
Deprecated, for removal: This API element is subject to removal in a future version.void
Deprecated, for removal: This API element is subject to removal in a future version.@UnknownNullability T2
Deprecated, for removal: This API element is subject to removal in a future version.toString()
Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Details
-
first
Deprecated, for removal: This API element is subject to removal in a future version. -
second
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
Pair
public Pair()Deprecated, for removal: This API element is subject to removal in a future version. -
Pair
Deprecated, for removal: This API element is subject to removal in a future version. -
Pair
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getFirst
Deprecated, for removal: This API element is subject to removal in a future version. -
setFirst
Deprecated, for removal: This API element is subject to removal in a future version. -
getSecond
Deprecated, for removal: This API element is subject to removal in a future version. -
setSecond
Deprecated, for removal: This API element is subject to removal in a future version. -
toString
Deprecated, for removal: This API element is subject to removal in a future version. -
equals
Deprecated, for removal: This API element is subject to removal in a future version.Checks for equality with Entries to matchhashCode()
-
hashCode
public final int hashCode()Deprecated, for removal: This API element is subject to removal in a future version.As defined byMap.Entry.hashCode()
-
getKey
Deprecated, for removal: This API element is subject to removal in a future version. -
getValue
Deprecated, for removal: This API element is subject to removal in a future version. -
setValue
Deprecated, for removal: This API element is subject to removal in a future version. -
clone
Deprecated, for removal: This API element is subject to removal in a future version.
-