Class QueryUtils


  • public class QueryUtils
    extends Object
    Utility functions for working with queries.
    Version:
    $Revision$ $Date$
    Author:
    Nick Collier
    • Constructor Detail

      • QueryUtils

        public QueryUtils()
    • Method Detail

      • createContains

        public static <T> Contains<T> createContains​(Iterable<T> iterable)
        Creates a Contains predicate using the items in the specified iterable. The predicate will true if passed an object that is in the iterable.
        Parameters:
        iterable -
        Returns:
        a Contains predicate using the items in the specified iterable.