Class IgnoreRestriction

  • All Implemented Interfaces:
    Restriction

    public class IgnoreRestriction
    extends Object
    Refuses versions that match any of given regular expressions.
    • Constructor Detail

      • IgnoreRestriction

        public IgnoreRestriction​(String[] expressions)
    • Method Detail

      • applies

        public boolean applies​(String version,
                               String originalVersion)
        Description copied from interface: Restriction
        Applies the restriction.
        Parameters:
        version - candidate version string
        originalVersion - original version string
        Returns:
        true if given version passed the restriction test (version can be considered candidate for upgrading)