diff --git a/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/Op.kt b/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/Op.kt index 1fa7a39415..5bdf45bcee 100644 --- a/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/Op.kt +++ b/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/Op.kt @@ -68,7 +68,7 @@ interface ComplexExpression * @see AndOp * @see OrOp */ -abstract class CompoundBooleanOp>( +sealed class CompoundBooleanOp( private val operator: String, internal val expressions: List> ) : Op(), ComplexExpression, Op.OpBoolean { @@ -80,12 +80,12 @@ abstract class CompoundBooleanOp>( /** * Represents a logical operator that performs an `and` operation between all the specified [expressions]. */ -class AndOp(expressions: List>) : CompoundBooleanOp(" AND ", expressions) +class AndOp(expressions: List>) : CompoundBooleanOp(" AND ", expressions) /** * Represents a logical operator that performs an `or` operation between all the specified [expressions]. */ -class OrOp(expressions: List>) : CompoundBooleanOp(" OR ", expressions) +class OrOp(expressions: List>) : CompoundBooleanOp(" OR ", expressions) /** Returns the inverse of this boolean expression. */ fun not(op: Expression): Op = NotOp(op)