Skip to content

Commit

Permalink
Style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
blootsvoets committed Sep 27, 2023
1 parent 5a4dfb6 commit c228153
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ open class RecordGenerator<K : SpecificRecord>(
* @param key key to generate data with
* @return list containing simulated values
*/
open fun iteratableRawValues(key: K, duration: Long): Iterable<Array<String>> = iterateValues(key, duration).asSequence()
open fun iteratableRawValues(key: K, duration: Long): Iterable<Array<String>> = iterateValues(key, duration)
.asSequence()
.map { record ->
val keyFieldsSize = record.key.schema.fields.size
val valueFieldsSize = record.value.schema.fields.size
Expand Down Expand Up @@ -168,11 +169,11 @@ open class RecordGenerator<K : SpecificRecord>(
}
}

/**
* Get a random double.
* @return random `Double` using `ThreadLocalRandom`.
*/
private val randomDouble: Double
/**
* Get a random double.
* @return random `Double` using `ThreadLocalRandom`.
*/
get() = Random.nextDouble(config.minimum, config.maximum)

/**
Expand Down

0 comments on commit c228153

Please sign in to comment.