Documentation of 'org.matheclipse.core.generic.Predicates' Java class
Predicates
org.matheclipse.core.generic

Class Predicates



  • public class Predicates
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static Predicate<IExpr> in(IAST ast)
      Returns a predicate that evaluates to true if the object reference being tested is one of the arguments of the given ast.
      static Predicate<IExpr> in(IExpr expr)
      Returns a predicate that evaluates to true if the object reference being tested is one of the arguments of the given ast.
      static Predicate<IExpr> isAST(ISymbol[] heads)
      Returns a predicate that evaluates to true if the input is an AST list, which contains one of the given header elements at index position 0.
      static Predicate<IExpr> isNumber()
      Returns a predicate that evaluates to true if input.isNumber() gives true.
      static Predicate<IExpr> isNumeric()
      Returns a predicate that evaluates to true if input.isNumeric() gives true.
      static Predicate<IExpr> isPattern()
      Returns a predicate that evaluates to true if the input is an instanceof IPattern.
      static Predicate<IExpr> isSignedNumber()
      Returns a predicate that evaluates to true if input.isSignedNumber() gives true.
      static Predicate<IExpr> isTrue(EvalEngine engine, IExpr head)
      Check if the evaluation of an unary AST object gives True.
      static Predicate<IExpr> isTrue(IExpr head)
      Check if the evaluation of an unary AST object gives True.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • isTrue

        public static Predicate<IExpr> isTrue(IExpr head)
        Check if the evaluation of an unary AST object gives True.
        Parameters:
        head -
        Returns:
      • isTrue

        public static Predicate<IExpr> isTrue(EvalEngine engine,
                                              IExpr head)
        Check if the evaluation of an unary AST object gives True.
        Parameters:
        engine -
        head -
        Returns:
      • in

        public static Predicate<IExpr> in(IAST ast)
        Returns a predicate that evaluates to true if the object reference being tested is one of the arguments of the given ast. It does not defensively copy the collection passed in, so future changes to it will alter the behavior of the predicate.
        Parameters:
        ast - the AST those arguments may contain the function input
      • in

        public static Predicate<IExpr> in(IExpr expr)
        Returns a predicate that evaluates to true if the object reference being tested is one of the arguments of the given ast. It does not defensively copy the collection passed in, so future changes to it will alter the behavior of the predicate.
        Parameters:
        expr - the expr which may macth the function input
      • isPattern

        public static Predicate<IExpr> isPattern()
        Returns a predicate that evaluates to true if the input is an instanceof IPattern.
        Returns:
      • isNumber

        public static Predicate<IExpr> isNumber()
        Returns a predicate that evaluates to true if input.isNumber() gives true.
        Returns:
      • isNumeric

        public static Predicate<IExpr> isNumeric()
        Returns a predicate that evaluates to true if input.isNumeric() gives true.
        Returns:
      • isSignedNumber

        public static Predicate<IExpr> isSignedNumber()
        Returns a predicate that evaluates to true if input.isSignedNumber() gives true.
        Returns:
      • isAST

        public static Predicate<IExpr> isAST(ISymbol[] heads)
        Returns a predicate that evaluates to true if the input is an AST list, which contains one of the given header elements at index position 0.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.