Class ExpressionMatchQuery<T>

    • Constructor Detail

      • ExpressionMatchQuery

        public ExpressionMatchQuery​(Class<? extends T> matchingClass,
                                    IExpression expression,
                                    Object... parameters)
      • ExpressionMatchQuery

        public ExpressionMatchQuery​(Class<? extends T> matchingClass,
                                    String expression,
                                    Object... parameters)
    • Method Detail

      • getMatchingClass

        public Class<? extends T> getMatchingClass()
      • perform

        public IQueryResult<T> perform​(Iterator<T> iterator)
        Description copied from interface: IQuery
        Evaluates the query for a specific input.
        Specified by:
        perform in interface IQuery<T>
        Parameters:
        iterator - The elements for which to evaluate the query on
        Returns:
        The results of the query.
      • isMatch

        public boolean isMatch​(T candidate)
        Description copied from interface: IMatchQuery
        Returns whether the given object satisfies the parameters of this query.
        Specified by:
        isMatch in interface IMatchQuery<T>
        Parameters:
        candidate - The object to perform the query against
        Returns:
        true if the unit satisfies the parameters of this query, and false otherwise
      • getExpression

        public IMatchExpression<T> getExpression()
        Description copied from interface: IQuery
        Returns the IExpression backing this query or null if this is not an expression query.
        Specified by:
        getExpression in interface IQuery<T>
        Returns:
        An expression or null.
      • setIndexProvider

        public void setIndexProvider​(IIndexProvider<T> indexProvider)
      • prePerform

        public void prePerform()
      • postPerform

        public void postPerform()