public class ComparablePair<F extends Comparable<F>,S> extends Pair<F,S> implements Comparable<ComparablePair<F,?>>
Constructor and Description |
---|
ComparablePair(F key,
S value)
Constructor with key and value
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ComparablePair<F,?> o) |
boolean |
equals(Object obj)
Returns
true if obj is also a Pair and contains two
objects equal to the two objects of this Pair. |
int |
hashCode()
Builds a new hash code out of the two objects' hash codes.
|
String |
toString() |
public int compareTo(ComparablePair<F,?> o)
compareTo
in interface Comparable<ComparablePair<F extends Comparable<F>,?>>
public boolean equals(Object obj)
Pair
true
if obj
is also a Pair and contains two
objects equal to the two objects of this Pair. null
references are
considered as equal, too.@enterprise 10.0.39049 Copyright © 2024 FREQUENTIS AG. All Rights Reserved.