Skip to content
This repository was archived by the owner on Jan 20, 2023. It is now read-only.

Commit a321bf0

Browse files
committed
AbstractMap.SimpleEntryを利用し、自分で定義しない形に修正
1 parent a3204bd commit a321bf0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/main/kotlin/com/mapk/fastkfunction/argumentbucket/ArgumentBucket.kt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.mapk.fastkfunction.argumentbucket
22

3+
import java.util.AbstractMap.SimpleEntry as Entry
34
import kotlin.reflect.KParameter
45

56
class ArgumentBucket(
@@ -8,11 +9,6 @@ class ArgumentBucket(
89
private val initializationStatuses: BooleanArray,
910
private val valueArrayGetter: (Array<Any?>) -> Array<Any?>
1011
) : Map<KParameter, Any?> {
11-
class Entry internal constructor(
12-
override val key: KParameter,
13-
override var value: Any?
14-
) : Map.Entry<KParameter, Any?>
15-
1612
fun isFullInitialized(): Boolean = initializationStatuses.all { it }
1713

1814
// getValueArrayは内部処理でしか利用しないためinternal化

0 commit comments

Comments
 (0)