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

Commit 2d71367

Browse files
committed
順序変更 + コメント追加
1 parent 208052d commit 2d71367

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ class ArgumentBucket(
6060
get() = keys.fold(HashSet()) { acc, cur ->
6161
acc.apply { if (initializationStatuses[cur.index]) add(cur) }
6262
}
63-
override val size: Int
64-
get() = throw UnsupportedOperationException()
6563
override val values: Collection<Any?>
6664
get() = valueArray.filterIndexed { idx, _ -> initializationStatuses[idx] }
6765

@@ -74,5 +72,8 @@ class ArgumentBucket(
7472

7573
override fun get(key: KParameter): Any? = valueArray[key.index]
7674

75+
// サイズ系の処理はVALUEパラメータ以外を考慮した際の整合性を考えることが難しく、使う場面も無いためUnsupported
76+
override val size: Int
77+
get() = throw UnsupportedOperationException()
7778
override fun isEmpty(): Boolean = throw UnsupportedOperationException()
7879
}

0 commit comments

Comments
 (0)