of

static TriState of(boolean bool)

Gets the corresponding tri-state from a boolean value.

Return

TRUE or FALSE depending on the value of the boolean.

Parameters

bool

the boolean value

static TriState of(@Nullable() Boolean bool)

Gets a tri-state from a nullable boxed boolean.

Return

DEFAULT if {@code null}.Otherwise TRUE or FALSE depending on the value of the boolean.

Parameters

bool

the boolean value