CavalliumDBEngine/src/main/java/it/cavallium/dbengine/client/HitEntry.java

14 lines
331 B
Java
Raw Normal View History

2021-10-28 23:48:25 +02:00
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);
}
}