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.

This class provides 10 methods for working with Version objects in Java programs. Available methods include: Version, clone, equals, getBuild, getMajor, getMinor, hashCode, toString. All public members are accessible to any Java application after installing the Aspose.3D FOSS for Java package. Properties: build, major, minor.

Properties

NameTypeAccessDescription
majorintReadGets the major.
minorintReadGets the minor.
buildintReadGets the build.

Methods

SignatureDescription
Version(major: int, minor: int)Parses the string to set major, minor, and optional build
Version(versionString: String)Calls Version(versionString) on this Version instance.
Version(major: int, minor: int, build: int)Calls Version(major, minor, build) on this Version instance.
getMajor()intReturns the major.
getMinor()intReturns the minor.
getBuild()intReturns the build.
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

 English