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
| 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) | Calls Version(versionString) on this Version instance. |
Version(major: int, minor: int, build: int) | Calls Version(major, minor, build) on this Version instance. |
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 |