Class Utils.TopicIdPartitionComparator
java.lang.Object
org.apache.kafka.clients.consumer.internals.Utils.TopicIdPartitionComparator
- All Implemented Interfaces:
Serializable,Comparator<org.apache.kafka.common.TopicIdPartition>
- Enclosing class:
Utils
public static final class Utils.TopicIdPartitionComparator
extends Object
implements Comparator<org.apache.kafka.common.TopicIdPartition>, Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompare(org.apache.kafka.common.TopicIdPartition topicPartition1, org.apache.kafka.common.TopicIdPartition topicPartition2) Comparison based on topic name and partition number.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
TopicIdPartitionComparator
public TopicIdPartitionComparator()
-
-
Method Details
-
compare
public int compare(org.apache.kafka.common.TopicIdPartition topicPartition1, org.apache.kafka.common.TopicIdPartition topicPartition2) Comparison based on topic name and partition number.- Specified by:
comparein interfaceComparator<org.apache.kafka.common.TopicIdPartition>
-