Interface Restriction
-
- All Known Implementing Classes:
IgnoreRestriction,NeverRestriction,QualifierRestriction,VersionPrefixRestriction,VersionStreamRestriction
public interface RestrictionInterfaces that's to be implemented by version restrictions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default booleanapplies(String version)Deprecated.Useapplies(String, String)instead.booleanapplies(String version, String originalVersion)Applies the restriction.
-
-
-
Method Detail
-
applies
boolean applies(String version, String originalVersion)
Applies 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)
-
applies
default boolean applies(String version)
Deprecated.Useapplies(String, String)instead.
-
-