public class Version extends Entity implements Comparable<Version>
| Modifier and Type | Field and Description |
|---|---|
static int |
BEGIN |
static int |
END |
changeSupport| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
Version version) |
void |
add(Version version) |
void |
clear() |
int |
compareTo(Version anotherVersion) |
void |
from(Version version) |
String |
getBuild() |
String |
getConstraint() |
int |
getDevPosition() |
String |
getFix() |
Version |
getHighest() |
Version |
getLowest() |
String |
getMajor() |
String |
getMinor() |
String |
getPrefix() |
String |
getStability() |
String |
getStabilityModifier() |
String |
getSuffix() |
Version |
getVersion(int index) |
List<Version> |
getVersions() |
boolean |
hasRange() |
void |
setBuild(String build) |
void |
setConstraint(String constraint) |
void |
setDevPosition(int devPosition) |
void |
setFix(String fix) |
void |
setMajor(String major) |
void |
setMinor(String minor) |
void |
setPrefix(String prefix) |
void |
setStability(String stability) |
void |
setStabilityModifier(String stabilityModifier) |
void |
setSuffix(String suffix) |
void |
setVersion(String version) |
String |
toString() |
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, removePropertyChangeListener, removePropertyChangeListenerpublic static final int BEGIN
public static final int END
public Version()
public Version(String version)
public boolean hasRange()
public Version getLowest()
public Version getHighest()
public void clear()
public Version getVersion(int index)
public void add(Version version)
public void add(int index,
Version version)
public String getConstraint()
public String getStabilityModifier()
public String getMajor()
public String getMinor()
public String getFix()
public String getBuild()
public String getStability()
public String getSuffix()
public void setVersion(String version)
version - the version to setpublic void from(Version version)
public void setConstraint(String constraint)
constraint - the constraint to setpublic void setStabilityModifier(String stabilityModifier)
stabilityModifier - the stabilityModifier to setpublic void setMajor(String major)
major - the major to setpublic void setMinor(String minor)
minor - the minor to setpublic void setFix(String fix)
fix - the fix to setpublic void setBuild(String build)
build - the build to setpublic void setStability(String stability)
stability - the stability to setpublic void setSuffix(String suffix)
suffix - the suffix to setpublic int getDevPosition()
public void setDevPosition(int devPosition)
public String getPrefix()
public void setPrefix(String prefix)
public int compareTo(Version anotherVersion)
compareTo in interface Comparable<Version>Copyright © 2013. All Rights Reserved.