Skip to content

Commit 4392a8c

Browse files
lppeddftomassetti
authored andcommitted
refactor: make Collections internal
1 parent b8bec97 commit 4392a8c

File tree

1 file changed

+3
-3
lines changed
  • antlr-kotlin-runtime/src/commonMain/kotlin/com/strumenta/antlrkotlin/runtime

1 file changed

+3
-3
lines changed

antlr-kotlin-runtime/src/commonMain/kotlin/com/strumenta/antlrkotlin/runtime/Collections.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
// Copyright 2024-present Strumenta and contributors, licensed under BSD 3-Clause.
33
package com.strumenta.antlrkotlin.runtime
44

5-
public object Collections {
6-
public fun <T : Comparable<T>> min(collection: Collection<T>): T =
5+
internal object Collections {
6+
fun <T : Comparable<T>> min(collection: Collection<T>): T =
77
collection.minOrNull() ?: throw NoSuchElementException()
88

9-
public fun <T : Comparable<T>> max(collection: Collection<T>): T =
9+
fun <T : Comparable<T>> max(collection: Collection<T>): T =
1010
collection.maxOrNull() ?: throw NoSuchElementException()
1111
}

0 commit comments

Comments
 (0)