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 http://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 String
MATCH_COMPATIBLE
static String
MATCH_EQUIVALENT
static String
MATCH_GREATER_OR_EQUAL
static String
MATCH_PERFECT
-
Constructor Summary
Constructors Constructor Description ImportRefVersionConstraint(String version, String match)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getMatch()
String
getVersion()
int
hashCode()
boolean
matches(String otherVersion)
Test whether otherVersion matches the current constraint.String
toString()
ImportRefVersionConstraint
withVersion(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.
-
-