/** * Returns true if the artifact matches <i>all</i> match policies, otherwise returns false. * * @param artifact the artifact to match against the match policies * @param matchPolicies the match policies * @return true if the artifact matches <i>all</i> match policies, otherwise returns false */ private boolean matchArtifacts( Artifact artifact, List<ArtifactMatchPolicy> matchPolicies ) { for ( ArtifactMatchPolicy matchPolicy : matchPolicies ) { if ( !matchPolicy.match( artifact ) ) { return false; } } return true; }