/** * Creates a filter that returns true for any value in the specified * list of values and false for all other cases. */ public static <T> Filter<T> in( T... values ) { return in( new HashSet<T>(Arrays.asList(values)) ); }
/** * Creates a filter that returns true for any value NOT in the specified * list of values and false for all other cases. This is the equivalent * of calling not(in(values)). */ public static <T> Filter<T> notIn( T... values ) { return not( in( values ) ); }
/** * Creates a filter that returns true for any value NOT in the specified * collection and false for all other cases. This is the equivalent * of calling not(in(collection)). */ public static <T> Filter<T> notIn( Collection<? extends T> collection ) { return not( in( collection ) ); }
/** * Creates a filter that returns true for any value in the specified * list of values and false for all other cases. */ public static <T> Filter<T> in( T... values ) { return in( new HashSet<T>(Arrays.asList(values)) ); }
/** * Creates a filter that returns true for any value in the specified * list of values and false for all other cases. */ public static <T> Filter<T> in( T... values ) { return in( new HashSet<T>(Arrays.asList(values)) ); }
/** * Creates a filter that returns true for any value NOT in the specified * collection and false for all other cases. This is the equivalent * of calling not(in(collection)). */ public static <T> Filter<T> notIn( Collection<? extends T> collection ) { return not( in( collection ) ); }
/** * Creates a filter that returns true for any value NOT in the specified * list of values and false for all other cases. This is the equivalent * of calling not(in(values)). */ public static <T> Filter<T> notIn( T... values ) { return not( in( values ) ); }
/** * Creates a filter that returns true for any value NOT in the specified * list of values and false for all other cases. This is the equivalent * of calling not(in(values)). */ public static <T> Filter<T> notIn( T... values ) { return not( in( values ) ); }
/** * Creates a filter that returns true for any value NOT in the specified * collection and false for all other cases. This is the equivalent * of calling not(in(collection)). */ public static <T> Filter<T> notIn( Collection<? extends T> collection ) { return not( in( collection ) ); }