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 8 methods for working with Version objects in Java programs. Available methods include: Version, clone, equals, getBuild, getMajor, getMinor, hashCode, toString. All exported members are accessible to any Java application after installing the Aspose.3D FOSS for Java package. Properties: build, major, minor.

Description

Version is a class in the Aspose.3D FOSS library for Java that exposes 7 methods and 3 properties for programmatic use. It extends Serializable and implements Cloneable, inheriting shared functionality from its parent type.

The class also provides the major property (gets the major), the minor property (gets the minor), the build property (gets the build).

The class offers 3 constructor overloads, allowing flexible initialization depending on the calling context.

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)
Version(major: int, minor: int, build: int)
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