Class ReleaseIdFilter


  • public class ReleaseIdFilter
    extends Object
    Enables filtering of ReleaseIds based on provided constraints (groupId, artifactId, version).

    This implementation compares the expected parts for equality (e.g. the filter accepts the releaseId in case the groupId/artifactId/version exactly matches the configured one). It is also possible to filter only on a subset of the constraints (e.g. only on groupId).

    The class comes with ReleaseIdFilter.Builder which can be used to easily create all kinds of filters.

    • Constructor Detail

      • ReleaseIdFilter

        public ReleaseIdFilter​(String groupId,
                               String artifactId,
                               String version)
      • ReleaseIdFilter

        public ReleaseIdFilter​(ReleaseId releaseId)
    • Method Detail

      • getGroupId

        public String getGroupId()
      • getArtifactId

        public String getArtifactId()
      • getVersion

        public String getVersion()
      • accept

        public boolean accept​(ReleaseId releaseId)
        Checks whether the specified releaseId matches (is accepted by) this filter.
        Parameters:
        releaseId - releaseId to match against
        Returns:
        true if this filter accepts the specified releaseId, otherwise false
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object