Class ChainedVersionFilter
- java.lang.Object
-
- org.eclipse.aether.util.graph.version.ChainedVersionFilter
-
- All Implemented Interfaces:
org.eclipse.aether.collection.VersionFilter
public final class ChainedVersionFilter extends java.lang.Object implements org.eclipse.aether.collection.VersionFilter
A version filter that combines multiple version filters into a chain where each filter gets invoked one after the other, thereby accumulating their filtering effects.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.aether.collection.VersionFilterderiveChildFilter(org.eclipse.aether.collection.DependencyCollectionContext context)booleanequals(java.lang.Object obj)voidfilterVersions(org.eclipse.aether.collection.VersionFilter.VersionFilterContext context)inthashCode()static org.eclipse.aether.collection.VersionFilternewInstance(java.util.Collection<? extends org.eclipse.aether.collection.VersionFilter> filters)Chains the specified version filters.static org.eclipse.aether.collection.VersionFilternewInstance(org.eclipse.aether.collection.VersionFilter... filters)Chains the specified version filters.static org.eclipse.aether.collection.VersionFilternewInstance(org.eclipse.aether.collection.VersionFilter filter1, org.eclipse.aether.collection.VersionFilter filter2)Chains the specified version filters.
-
-
-
Method Detail
-
newInstance
public static org.eclipse.aether.collection.VersionFilter newInstance(org.eclipse.aether.collection.VersionFilter filter1, org.eclipse.aether.collection.VersionFilter filter2)
Chains the specified version filters.- Parameters:
filter1- The first version filter, may benull.filter2- The second version filter, may benull.- Returns:
- The chained version filter or
nullif both input filters arenull.
-
newInstance
public static org.eclipse.aether.collection.VersionFilter newInstance(org.eclipse.aether.collection.VersionFilter... filters)
Chains the specified version filters.- Parameters:
filters- The version filters to chain, must not benullor containnull.- Returns:
- The chained version filter or
nullif the input array is empty.
-
newInstance
public static org.eclipse.aether.collection.VersionFilter newInstance(java.util.Collection<? extends org.eclipse.aether.collection.VersionFilter> filters)
Chains the specified version filters.- Parameters:
filters- The version filters to chain, must not benullor containnull.- Returns:
- The chained version filter or
nullif the input collection is empty.
-
filterVersions
public void filterVersions(org.eclipse.aether.collection.VersionFilter.VersionFilterContext context) throws org.eclipse.aether.RepositoryException
- Specified by:
filterVersionsin interfaceorg.eclipse.aether.collection.VersionFilter- Throws:
org.eclipse.aether.RepositoryException
-
deriveChildFilter
public org.eclipse.aether.collection.VersionFilter deriveChildFilter(org.eclipse.aether.collection.DependencyCollectionContext context)
- Specified by:
deriveChildFilterin interfaceorg.eclipse.aether.collection.VersionFilter
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-