Class IgnoreRestriction
- java.lang.Object
-
- org.jboss.set.mavendependencyupdater.rules.IgnoreRestriction
-
- All Implemented Interfaces:
Restriction
public class IgnoreRestriction extends Object
Refuses versions that match any of given regular expressions.
-
-
Constructor Summary
Constructors Constructor Description IgnoreRestriction(String[] expressions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanapplies(String version, String originalVersion)Applies the restriction.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.set.mavendependencyupdater.rules.Restriction
applies
-
-
-
-
Constructor Detail
-
IgnoreRestriction
public IgnoreRestriction(String[] expressions)
-
-
Method Detail
-
applies
public boolean applies(String version, String originalVersion)
Description copied from interface:RestrictionApplies the restriction.- Parameters:
version- candidate version stringoriginalVersion- original version string- Returns:
- true if given version passed the restriction test (version can be considered candidate for upgrading)
-
-