rohitrmd commented on a change in pull request #10276: URL: https://github.com/apache/kafka/pull/10276#discussion_r597158051
########## File path: raft/src/main/java/org/apache/kafka/raft/ValidOffsetAndEpoch.java ########## @@ -16,40 +16,56 @@ */ package org.apache.kafka.raft; +import java.util.Objects; + public final class ValidOffsetAndEpoch { - final private Type type; + final private Kind kind; Review comment: Agree with existing design and limitations of interface compared to case classes. Java 15 has sealed classes which will be good alternative: https://openjdk.java.net/jeps/360 to interfaces as we will be limiting the extension. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org