|
1 | 1 | /* |
2 | | - * Copyright (c) 2023. ForteScarlet. |
| 2 | + * Copyright (c) 2023-2025. ForteScarlet. |
3 | 3 | * |
4 | | - * This file is part of simbot-component-kook. |
| 4 | + * This file is part of simbot-component-kook. |
5 | 5 | * |
6 | | - * simbot-component-kook is free software: you can redistribute it and/or modify it under the terms of |
7 | | - * the GNU Lesser General Public License as published by the Free Software Foundation, |
8 | | - * either version 3 of the License, or (at your option) any later version. |
| 6 | + * simbot-component-kook is free software: you can redistribute it and/or modify |
| 7 | + * it under the terms of the GNU Lesser General Public License as published by |
| 8 | + * the Free Software Foundation, either version 3 of the License, or |
| 9 | + * (at your option) any later version. |
9 | 10 | * |
10 | | - * simbot-component-kook is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
11 | | - * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
12 | | - * See the GNU Lesser General Public License for more details. |
| 11 | + * simbot-component-kook is distributed in the hope that it will be useful, |
| 12 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | + * GNU Lesser General Public License for more details. |
13 | 15 | * |
14 | | - * You should have received a copy of the GNU Lesser General Public License along with simbot-component-kook, |
15 | | - * If not, see <https://www.gnu.org/licenses/>. |
| 16 | + * You should have received a copy of the GNU Lesser General Public License |
| 17 | + * along with simbot-component-kook, |
| 18 | + * If not, see <https://www.gnu.org/licenses/>. |
16 | 19 | */ |
17 | 20 |
|
18 | 21 | package love.forte.simbot.kook.stdlib.internal |
@@ -40,12 +43,12 @@ internal class ActualEnumMap<E : Enum<E>, V> private constructor(private val val |
40 | 43 | } |
41 | 44 |
|
42 | 45 | /** |
43 | | - * @throws IndexOutOfBoundsException if key is out of range |
| 46 | + * @throws IndexOutOfBoundsException if [key] is out of range |
44 | 47 | */ |
45 | 48 | operator fun get(key: E): V = values[key.ordinal] |
46 | 49 |
|
47 | 50 | /** |
48 | | - * @throws IndexOutOfBoundsException if key is out of range |
| 51 | + * @throws IndexOutOfBoundsException if [key] is out of range |
49 | 52 | */ |
50 | 53 | operator fun set(key: E, value: V) { |
51 | 54 | values[key.ordinal] = value |
|
0 commit comments