of

fun of(bl: Boolean): TriState

Gets the corresponding tri-state from a boolean value.

Return

TriState.TRUE or TriState.FALSE depending on the value of the boolean.

Author

fzzyhmstrs

Since

0.6.5

Parameters

bl

the boolean value


fun of(bl: Boolean?): TriState

Gets a tri-state from a nullable boolean.

Return

DEFAULT if null, Otherwise TRUE or FALSE depending on the value of the boolean.

Author

fzzyhmstrs

Since

0.6.5

Parameters

bl

the boolean value