Class ImportRefVersionConstraint
- java.lang.Object
-
- org.eclipse.tycho.versions.engine.ImportRefVersionConstraint
-
public class ImportRefVersionConstraint extends Object
Represent a version constraint using version and match attributes as defined in feature manifest file (feature>requires>import) {@link https://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2Ffeature_manifest.html&cp=2_1_5_20}- Author:
- sarod
-
-
Field Summary
Fields Modifier and Type Field Description static StringMATCH_COMPATIBLEstatic StringMATCH_EQUIVALENTstatic StringMATCH_GREATER_OR_EQUALstatic StringMATCH_PERFECT
-
Constructor Summary
Constructors Constructor Description ImportRefVersionConstraint(String version, String match)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetMatch()StringgetVersion()inthashCode()booleanmatches(String otherVersion)Test whether otherVersion matches the current constraint.StringtoString()ImportRefVersionConstraintwithVersion(String newVersion)
-
-
-
Field Detail
-
MATCH_GREATER_OR_EQUAL
public static final String MATCH_GREATER_OR_EQUAL
- See Also:
- Constant Field Values
-
MATCH_COMPATIBLE
public static final String MATCH_COMPATIBLE
- See Also:
- Constant Field Values
-
MATCH_EQUIVALENT
public static final String MATCH_EQUIVALENT
- See Also:
- Constant Field Values
-
MATCH_PERFECT
public static final String MATCH_PERFECT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getVersion
public String getVersion()
-
getMatch
public String getMatch()
-
withVersion
public ImportRefVersionConstraint withVersion(String newVersion)
-
matches
public boolean matches(String otherVersion)
Test whether otherVersion matches the current constraint.- Returns:
- true if otherVersion matches the constraint.
-
-