Skip to content

Commit

Permalink
Add JVM static
Browse files Browse the repository at this point in the history
  • Loading branch information
clementetb committed Jun 2, 2024
1 parent 07835fd commit 43c0037
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ actual enum class CoreConnectionState(val value: Int) {
RLM_SYNC_CONNECTION_STATE_CONNECTED(realm_sync_connection_state_e.RLM_SYNC_CONNECTION_STATE_CONNECTED);

companion object {
@JvmStatic
fun of(value: Int): CoreConnectionState =
entries.find { it.value == value }
?: error("Unknown connection state: $value")
Expand Down

0 comments on commit 43c0037

Please sign in to comment.