
com.clearspring.analytics.util.UnsignedIntComparator Maven / Gradle / Ivy
The newest version!
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 - 2025 Weber Informatics LLC | Privacy Policy