Class 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.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.eclipse.aether.collection.VersionFilter

        org.eclipse.aether.collection.VersionFilter.VersionFilterContext
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.eclipse.aether.collection.VersionFilter deriveChildFilter​(org.eclipse.aether.collection.DependencyCollectionContext context)  
      boolean equals​(java.lang.Object obj)  
      void filterVersions​(org.eclipse.aether.collection.VersionFilter.VersionFilterContext context)  
      int hashCode()  
      static org.eclipse.aether.collection.VersionFilter newInstance​(java.util.Collection<? extends org.eclipse.aether.collection.VersionFilter> filters)
      Chains the specified version filters.
      static org.eclipse.aether.collection.VersionFilter newInstance​(org.eclipse.aether.collection.VersionFilter... filters)
      Chains the specified version filters.
      static org.eclipse.aether.collection.VersionFilter newInstance​(org.eclipse.aether.collection.VersionFilter filter1, org.eclipse.aether.collection.VersionFilter filter2)
      Chains the specified version filters.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • 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 be null.
        filter2 - The second version filter, may be null.
        Returns:
        The chained version filter or null if both input filters are null.
      • 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 be null or contain null.
        Returns:
        The chained version filter or null if 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 be null or contain null.
        Returns:
        The chained version filter or null if the input collection is empty.
      • filterVersions

        public void filterVersions​(org.eclipse.aether.collection.VersionFilter.VersionFilterContext context)
                            throws org.eclipse.aether.RepositoryException
        Specified by:
        filterVersions in interface org.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:
        deriveChildFilter in interface org.eclipse.aether.collection.VersionFilter
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object