com.clearspring.analytics.util.UnsignedIntComparator Maven / Gradle / Ivy
package com.clearspring.analytics.util;
import java.util.Comparator;
public class UnsignedIntComparator implements Comparator {
@Override
public int compare(byte[] left, byte[] right) {
int l = Varint.readUnsignedVarInt(left);
int r = Varint.readUnsignedVarInt(right);
return l - r;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy