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

Commit 57d4f6b

Browse files
committed
コメント追加
1 parent 0fbe544 commit 57d4f6b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ class ArgumentBucket(
3333
}
3434
}
3535

36+
/**
37+
* If the specified key is not already associated with a value associates it with the given value and returns
38+
* {@code null}, else returns the current value.
39+
*/
3640
fun setIfAbsent(key: KParameter, value: Any?): Any? {
3741
return if (initializationStatuses[key.index])
3842
valueArray[key.index]
@@ -43,6 +47,10 @@ class ArgumentBucket(
4347
}
4448
}
4549

50+
/**
51+
* If the specified key is not already associated with a value associates it with the given value and returns
52+
* {@code null}, else returns the current value.
53+
*/
4654
fun setIfAbsent(index: Int, value: Any?): Any? {
4755
return if (initializationStatuses[index])
4856
valueArray[index]

0 commit comments

Comments
 (0)