Class AVersion
- java.lang.Object
-
- org.faktorips.devtools.abstraction.AVersion
-
-
Field Summary
Fields Modifier and Type Field Description static AVersionVERSION_ZERO
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(AVersion o)booleanequals(java.lang.Object obj)java.lang.StringgetMajor()Returns the major part of this version number, which is the number before the first ".".java.lang.StringgetMinor()Returns the minor part of this version number, which is the number between the first and second ".".inthashCode()AVersionmajorMinor()static AVersionparse(java.lang.String versionString)Parses the given version string toAVersion, dropping "qualifier" and trailing '.0' parts.java.lang.StringtoString()
-
-
-
Field Detail
-
VERSION_ZERO
public static final AVersion VERSION_ZERO
-
-
Method Detail
-
parse
public static AVersion parse(java.lang.String versionString)
Parses the given version string toAVersion, dropping "qualifier" and trailing '.0' parts.
-
compareTo
public int compareTo(AVersion o)
- Specified by:
compareToin interfacejava.lang.Comparable<AVersion>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
majorMinor
public AVersion majorMinor()
-
getMajor
public java.lang.String getMajor()
Returns the major part of this version number, which is the number before the first ".". Should the version number not contain a major part,"0"is returned.
-
getMinor
public java.lang.String getMinor()
Returns the minor part of this version number, which is the number between the first and second ".". Should the version number not contain a minor part,"0"is returned.
-
-