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
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
final boolean
Checks for equality with Entries to matchhashCode()
getFirst()
getKey()
getValue()
final int
hashCode()
As defined byMap.Entry.hashCode()
void
void
toString()
-
Field Details
-
first
-
second
-
-
Constructor Details
-
Pair
public Pair() -
Pair
-
Pair
-
-
Method Details
-
getFirst
-
setFirst
-
getSecond
-
setSecond
-
toString
-
equals
Checks for equality with Entries to matchhashCode()
-
hashCode
public final int hashCode()As defined byMap.Entry.hashCode()
-
getKey
-
getValue
-
setValue
-
clone
-