Package org.apache.maven.index
Class AndMultiArtifactInfoFilter
- java.lang.Object
-
- org.apache.maven.index.AbstractMultiArtifactInfoFilter
-
- org.apache.maven.index.AndMultiArtifactInfoFilter
-
- All Implemented Interfaces:
ArtifactInfoFilter
public class AndMultiArtifactInfoFilter extends AbstractMultiArtifactInfoFilter
This is a aggregated artifact info filter that performs AND operation (all filter has to accept the artifact info, if one rejects, results is reject). It is implemented in "fail fast" way, as soon as some member ArtifactFilter rejects, it will be rejected.
-
-
Constructor Summary
Constructors Constructor Description AndMultiArtifactInfoFilter(java.util.List<ArtifactInfoFilter> filters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
accepts(java.util.List<ArtifactInfoFilter> filters, IndexingContext ctx, ArtifactInfo ai)
It is left to final implementor to implement how we want to decide using filters.-
Methods inherited from class org.apache.maven.index.AbstractMultiArtifactInfoFilter
accepts, getFilters
-
-
-
-
Constructor Detail
-
AndMultiArtifactInfoFilter
public AndMultiArtifactInfoFilter(java.util.List<ArtifactInfoFilter> filters)
-
-
Method Detail
-
accepts
protected boolean accepts(java.util.List<ArtifactInfoFilter> filters, IndexingContext ctx, ArtifactInfo ai)
Description copied from class:AbstractMultiArtifactInfoFilter
It is left to final implementor to implement how we want to decide using filters. This method is called only if we _have_ filters set!- Specified by:
accepts
in classAbstractMultiArtifactInfoFilter
- Returns:
-
-