org.whispersystems.libsignal.util.IdentityKeyComparator Maven / Gradle / Ivy
package org.whispersystems.libsignal.util;
import org.whispersystems.libsignal.IdentityKey;
import java.util.Comparator;
public class IdentityKeyComparator extends ByteArrayComparator implements Comparator {
@Override
public int compare(IdentityKey first, IdentityKey second) {
return compare(first.getPublicKey().serialize(), second.getPublicKey().serialize());
}
}