Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
Android Documentation
Version

Class Version

Hierarchy

java.lang.Object

Package
com.smartdevicelink.util

Constructors

Version()

public Version()

Version( int major, int minor, int patch )

public Version(int major,int minor,int patch)

Constructor Parameters

major
minor
patch

Version( SdlMsgVersion sdlMsgVersion )

public Version(SdlMsgVersion sdlMsgVersion)

Constructor Parameters

sdlMsgVersion

Version( String versionString )

public Version(String versionString)

Constructor Parameters

versionString

Methods

getMajor()

public int getMajor()

getMinor()

public int getMinor()

getPatch()

public int getPatch()

isNewerThan( Version version )

Method to test if this instance of Version is newer than the supplied one.

public int isNewerThan(Version version)

Method Parameters

version
the version to check against

isBetween( Version minVersion, Version maxVersion )

public int isBetween(Version minVersion,Version maxVersion)

Method Parameters

minVersion
the lowest version to be used in the comparison
maxVersion
the highest version to be used in the comparison

toString()

public java.lang.String toString()

Inherited Methods

From Class Methods
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section