Interface LeafExpression

    • Method Detail

      • replace

        LeafExpression replace​(java.util.function.Function<LeafExpression,​LeafExpression> function)
        Description copied from interface: Constraint
        Returns new Constraint with LeafExpressions in this Constraint replaced with values returned from the given function.
        Specified by:
        replace in interface Constraint
        Specified by:
        replace in interface Expression
        Parameters:
        function - returns the LeafExpression to use as a replacement for the LeafExpression it is called with, or null if the original LeafExpression should continue to be used.
        Returns:
        a new Constraint with LeafExpressions in this Constraint replaced with versions returned from function.