public class DependenciesFilter extends Object
| Constructor and Description |
|---|
DependenciesFilter() |
DependenciesFilter(String classifier,
String scope) |
| Modifier and Type | Method and Description |
|---|---|
Set<ArtifactCoordinates> |
filter(ProjectDependencyNode node)
Retrieves the project direct dependencies that have a
scope, classifier and DEFAULT_TYPE. |
protected Predicate<ArtifactCoordinates> |
hasClassifier(String classifier)
Predicate that compares the dependency classifier with the given one
|
protected Predicate<ArtifactCoordinates> |
hasScope(String scope)
Predicate that compares the dependency scope with the given one
|
protected Predicate<ArtifactCoordinates> |
hasType(String type)
Predicate that compares the dependency type with the given one
|
protected Predicate<ArtifactCoordinates> |
satisfies(String classifier,
String scope,
String type)
A predicate for
ArtifactCoordinates that returns true if the instance have the specific ,
and . |
public Set<ArtifactCoordinates> filter(ProjectDependencyNode node)
scope, classifier and DEFAULT_TYPE.protected Predicate<ArtifactCoordinates> hasClassifier(String classifier)
classifier - The classifier to be compared toprotected Predicate<ArtifactCoordinates> hasScope(String scope)
scope - The scope to be compared toprotected Predicate<ArtifactCoordinates> hasType(String type)
type - The scope to be compared toprotected Predicate<ArtifactCoordinates> satisfies(String classifier, String scope, String type)
ArtifactCoordinates that returns true if the instance have the specific ,
and .classifier - The classifier constraintscope - The scope constrainttype - The type constraintArtifactCoordinates satisfies the constraint, false otherwiseCopyright © 2019 MuleSoft Inc. All rights reserved.