diff --git a/core/src/main/java/com/m3u/core/unspecified/UBoolean.kt b/core/src/main/java/com/m3u/core/unspecified/UBoolean.kt index 40ae5179e..3e3d8cfed 100644 --- a/core/src/main/java/com/m3u/core/unspecified/UBoolean.kt +++ b/core/src/main/java/com/m3u/core/unspecified/UBoolean.kt @@ -6,4 +6,6 @@ enum class UBoolean { val Boolean.ub: UBoolean get() = if (this) UBoolean.True else UBoolean.False +val UBoolean?.orUnspecified: UBoolean get() = this ?: UBoolean.Unspecified + val UBoolean.isUnspecified: Boolean get() = this == UBoolean.Unspecified