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