Skip to content

Commit

Permalink
La til component1/2 extension på streams Record
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsmsa committed Sep 19, 2024
1 parent 08badc2 commit 8853dd8
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package no.nav.paw.config.kafka.streams

import org.apache.kafka.streams.processor.api.Record


operator fun <K, V> Record<K, V>.component1(): K = key()
operator fun <K, V> Record<K, V>.component2(): V = value()

0 comments on commit 8853dd8

Please sign in to comment.