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
public class Pair<T1,T2>
extends Object
implements Map.Entry<T1,T2>, Cloneable, Serializable
Deprecated.
Use a use-case specific record.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Deprecated.final boolean
Deprecated.Checks for equality with Entries to matchhashCode()
@UnknownNullability T1
getFirst()
Deprecated.@UnknownNullability T1
getKey()
Deprecated.@UnknownNullability T2
Deprecated.@UnknownNullability T2
getValue()
Deprecated.final int
hashCode()
Deprecated.As defined byMap.Entry.hashCode()
void
Deprecated.void
Deprecated.@UnknownNullability T2
Deprecated.toString()
Deprecated.
-
Field Details
-
first
Deprecated. -
second
Deprecated.
-
-
Constructor Details
-
Pair
public Pair()Deprecated. -
Pair
Deprecated. -
Pair
Deprecated.
-
-
Method Details
-
getFirst
Deprecated. -
setFirst
Deprecated. -
getSecond
Deprecated. -
setSecond
Deprecated. -
toString
Deprecated. -
equals
Deprecated.Checks for equality with Entries to matchhashCode()
-
hashCode
public final int hashCode()Deprecated.As defined byMap.Entry.hashCode()
-
getKey
Deprecated. -
getValue
Deprecated. -
setValue
Deprecated. -
clone
Deprecated.
-