All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.whispersystems.libsignal.util.IdentityKeyComparator Maven / Gradle / Ivy

There is a newer version: 2.8.1
Show newest version
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());
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy