api / org.gradle.api.specs / Specs / intersect

intersect

@SafeVarargs open static fun <T : Any> intersect(vararg specs: Spec<in T>): Spec<T>
open static fun <T : Any> intersect(specs: MutableCollection<out Spec<in T>>): Spec<T>

Returns a spec that selects the intersection of those items selected by the given specs. Returns a spec that selects everything when no specs provided.