Version

Overview

Version is a class in Aspose.3D FOSS for Java. Inherits from: Serializable, Cloneable.

Version.Version(major:int, minor:int) creates a version with specified major and minor numbers.

Properties

NameTypeAccessDescription
majorintReadProperty holds the major version number
minorintRead
buildintReadProperty holds the build number of the version

Methods

SignatureDescription
Version(major: int, minor: int)Parses the string to set major, minor, and optional build
Version(versionString: String)
Version(major: int, minor: int, build: int)
getMajor()intReturns the major component of the version
getMinor()intReturns the minor component of the version
getBuild()intReturns the build component of the version
equals(obj: Object)booleanChecks if the given object represents the same version
hashCode()intReturns a hash code based on major, minor, and build values
toString()StringReturns the version formatted as a string
clone()VersionCreates a copy of this Version instance

See Also