def __init__(self, key_predicate=None, value_predicate=None, key_value_predicate=None): super().__init__(_class_name=self.CLASS) self.key_predicate = pred.predicate_converter( key_predicate) if key_predicate is not None else None self.value_predicate = pred.predicate_converter( value_predicate) if value_predicate is not None else None self.key_value_predicate = pred.predicate_converter( key_value_predicate) if key_value_predicate is not None else None
def __init__(self, condition=None, predicate=None, then=None, otherwise=None): super().__init__(_class_name=self.CLASS) self.condition = condition self.predicate = pred.predicate_converter(predicate) self.then = function_converter(then) self.otherwise = function_converter(otherwise)
def __init__(self, predicate=None): super().__init__(_class_name=self.CLASS) self.predicate = pred.predicate_converter(predicate) if predicate is not None else None