Said BOUDJELDA created KAFKA-18402: -------------------------------------- Summary: Use the same implementations as compareTo of java UUID for org.apache.kafka.common.Uuid Key: KAFKA-18402 URL: https://issues.apache.org/jira/browse/KAFKA-18402 Project: Kafka Issue Type: Improvement Components: clients Reporter: Said BOUDJELDA
The the reference implementation for org.apache.kafka.common.Uuid compareTo public method as of java.util.UUID {code:java} @Override public int compareTo(UUID val) { // The ordering is intentionally set up so that the UUIDs // can simply be numerically compared as two numbers int mostSigBits = Long.compare(this.mostSigBits, val.mostSigBits); return mostSigBits != 0 ? mostSigBits : Long.compare(this.leastSigBits, val.leastSigBits); } {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)