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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()final booleanChecks for equality with Entries to matchhashCode()getFirst()getKey()getValue()final inthashCode()As defined byMap.Entry.hashCode()voidvoidtoString()
-
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
-