Skip to content

Commit

Permalink
Make these jvmstatic
Browse files Browse the repository at this point in the history
  • Loading branch information
alexstaeding committed Nov 23, 2023
1 parent 3395e7a commit 44a541f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,16 @@ sealed interface Key<T : Any> : Comparable<Key<T>> {
return result
}

@JvmStatic
fun <T : Any> simpleBuilder(type: TypeToken<T>): SimpleKey.FacetedBuilder<T> = SimpleKeyBuilder(type)

@JvmStatic
fun <E : Any> listBuilder(
type: TypeToken<List<E>>,
elementType: TypeToken<E>,
): ListKey.FacetedBuilder<E> = ListKeyBuilder(type, elementType)

@JvmStatic
fun <K : Any, V : Any> mapBuilder(
type: TypeToken<Map<K, V>>,
keyType: TypeToken<K>,
Expand Down

0 comments on commit 44a541f

Please sign in to comment.