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
| Name | Type | Access | Description |
|---|---|---|---|
major | int | Read | Gets the major. |
minor | int | Read | Gets the minor. |
build | int | Read | Gets the build. |
Methods
| Signature | Description |
|---|---|
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() → int | Returns the major. |
getMinor() → int | Returns the minor. |
getBuild() → int | Returns the build. |
equals(obj: Object) → boolean | Checks if the given object represents the same version |
hashCode() → int | Returns a hash code based on major, minor, and build values |
toString() → String | Returns the version formatted as a string |
clone() → Version | Creates a copy of this Version instance |