infix fun KProperty0<OptionalInput<List<*>>>.ensureDisjoint(otherProperty: KProperty0<OptionalInput<List<*>>>)

Helper function to ensure that two optional lists are disjoint Typically used in an add/remove update context Uses the properties to get the name of the properties to generate the failure message

Parameters

otherProperty

the other property

Throws

if both lists are present and not disjoint