Class SnapshotVersionFilter

All Implemented Interfaces:

public final class SnapshotVersionFilter extends Object implements VersionFilter
A version filter that (unconditionally) blocks "*-SNAPSHOT" versions. For practical purposes, ContextualSnapshotVersionFilter is usually more desirable.
  • Constructor Details

  • Method Details

    • filterVersions

      Description copied from interface: VersionFilter
      Filters the available versions for a given dependency. Implementations will usually call context.iterator() to inspect the available versions and use Iterator.remove() to delete unacceptable versions. If no versions remain after all filtering has been performed, the dependency collection process will automatically fail, i.e. implementations need not handle this situation on their own.
      Specified by:
      filterVersions in interface VersionFilter
      context - The version filter context, must not be null.
    • deriveChildFilter

      Description copied from interface: VersionFilter
      Derives a version filter for the specified collection context. The derived filter will be used to handle version ranges encountered in child dependencies of the current node. When calculating the child filter, implementors are strongly advised to simply return the current instance if nothing changed to help save memory.
      Specified by:
      deriveChildFilter in interface VersionFilter
      context - The dependency collection context, must not be null.
      The version filter for the target node or null if versions should not be filtered any more.
    • equals

      public boolean equals(Object obj)
      equals in class Object
    • hashCode

      public int hashCode()
      hashCode in class Object