/** * Create a new CONTAINS ALL specification for a Collection Property. * * @param <T> Collection property type * @param collectionProperty a Collection Property * @param values its values * * @return a new CONTAINS ALL specification for a Collection Property. */ public static <T> ContainsAllPredicate<T> containsAll( Property<? extends Collection<T>> collectionProperty, Collection<T> values ) { Objects.requireNonNull( values, "Values" ); return new ContainsAllPredicate<>( property( collectionProperty ), values ); }
/** * Create a new CONTAINS ALL specification for a Collection Property. * * @param <T> Collection property type * @param collectionProperty a Collection Property * @param values its values * * @return a new CONTAINS ALL specification for a Collection Property. */ public static <T> ContainsAllPredicate<T> containsAll( Property<? extends Collection<T>> collectionProperty, Collection<T> values ) { Objects.requireNonNull( values, "Values" ); return new ContainsAllPredicate<>( property( collectionProperty ), values ); }
/** * Create a new CONTAINS ALL specification for a Collection Property using named Variables. * * @param <T> Collection property type * @param collectionProperty a Collection Property * @param variables named Variables * * @return a new CONTAINS ALL specification for a Collection Property using named Variables. */ @SuppressWarnings( {"raw", "unchecked"} ) public static <T> ContainsAllPredicate<T> containsAllVariables( Property<? extends Collection<T>> collectionProperty, Collection<Variable> variables ) { Objects.requireNonNull( variables, "Variables" ); return new ContainsAllPredicate( property( collectionProperty ), variables ); }
/** * Create a new CONTAINS ALL specification for a Collection Property using named Variables. * * @param <T> Collection property type * @param collectionProperty a Collection Property * @param variables named Variables * * @return a new CONTAINS ALL specification for a Collection Property using named Variables. */ @SuppressWarnings( {"raw", "unchecked"} ) public static <T> ContainsAllPredicate<T> containsAllVariables( Property<? extends Collection<T>> collectionProperty, Collection<Variable> variables ) { Objects.requireNonNull( variables, "Variables" ); return new ContainsAllPredicate( property( collectionProperty ), variables ); }