14 lines
331 B
Java
14 lines
331 B
Java
|
package it.cavallium.dbengine.client;
|
||
|
|
||
|
import org.jetbrains.annotations.NotNull;
|
||
|
import reactor.core.publisher.Mono;
|
||
|
|
||
|
public record HitEntry<T, U>(T key, U value, float score)
|
||
|
implements Comparable<HitEntry<T, U>> {
|
||
|
|
||
|
@Override
|
||
|
public int compareTo(@NotNull HitEntry<T, U> o) {
|
||
|
return Float.compare(o.score, this.score);
|
||
|
}
|
||
|
}
|