@Override
    public boolean equals(Object obj) {
        if (obj instanceof LogOffsetMetadata) {
            LogOffsetMetadata other = (LogOffsetMetadata) obj;
            return this.offset == other.offset &&
                   this.metadata.equals(other.metadata);
        } else {
            return false;
        }
    }
Metadata for specific local log offset
raft/src/main/java/org/apache/kafka/raft/LogOffsetMetadata.java