Package io.nevernull.mobileui
Class PlatformService.Version
- java.lang.Object
-
- io.nevernull.mobileui.PlatformService.Version
-
- All Implemented Interfaces:
Comparable<PlatformService.Version>
- Enclosing interface:
- PlatformService
public static class PlatformService.Version extends Object implements Comparable<PlatformService.Version>
Version supports major minor and maintenance version. On Android, this will contain the API level number as major version (e.g. 29.0.0) as this is the only concrete number.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(PlatformService.Version o)
boolean
equals(Object obj)
int
getMaintenanceVersion()
int
getMajorVersion()
int
getMinorVersion()
int
hashCode()
void
setMaintenanceVersion(int maintenanceVersion)
void
setMajorVersion(int majorVersion)
void
setMinorVersion(int minorVersion)
String
toString()
static PlatformService.Version
valueOf(String versionString)
-
-
-
Method Detail
-
getMajorVersion
public int getMajorVersion()
- Returns:
- the majorVersion
-
setMajorVersion
public void setMajorVersion(int majorVersion)
- Parameters:
majorVersion
- the majorVersion to set
-
getMinorVersion
public int getMinorVersion()
- Returns:
- the minorVersion
-
setMinorVersion
public void setMinorVersion(int minorVersion)
- Parameters:
minorVersion
- the minorVersion to set
-
getMaintenanceVersion
public int getMaintenanceVersion()
- Returns:
- the maintenanceVersion
-
setMaintenanceVersion
public void setMaintenanceVersion(int maintenanceVersion)
- Parameters:
maintenanceVersion
- the maintenanceVersion to set
-
valueOf
public static PlatformService.Version valueOf(String versionString)
-
compareTo
public int compareTo(PlatformService.Version o)
- Specified by:
compareTo
in interfaceComparable<PlatformService.Version>
- See Also:
Comparable.compareTo(Object)
-
toString
public String toString()
- Overrides:
toString
in classObject
- See Also:
Object.toString()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classObject
- See Also:
Object.hashCode()
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classObject
- See Also:
Object.equals(Object)
-
-