K - the key typepublic class MergePair<K> extends Object
CMS.MERGE.| Constructor and Description |
|---|
MergePair(K key,
long weight)
Creates a new
MergePair. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
K |
getKey()
Returns the key.
|
long |
getWeight()
Returns the weight.
|
int |
hashCode() |
static <K> MergePair<K> |
of(K key,
long weight)
Creates a new
MergePair. |
String |
toString() |
public static <K> MergePair<K> of(K key, long weight)
MergePair.K - the key type.key - the key, must not be null.weight - the weight.MergePair.public K getKey()
public long getWeight()
Copyright © 2026 lettuce.io. All rights reserved.