Reusable Java library of general tools with minimal external dependencies.
For questions or support, please contact us:
Email: support@aoindustries.com
Phone: 1-800-519-9541
Phone: +1-251-607-9556
Web: https://www.aoindustries.com/contact
public final class Version extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getBuild()
Gets the build number.
|
static Version |
getInstance(int major,
int minor,
int release,
int build)
Gets a version number instance from its component parts.
|
int |
getMajor()
Gets the major version number.
|
int |
getMinor()
Gets the minor version number.
|
int |
getRelease()
Gets the release number.
|
int |
hashCode() |
String |
toString()
The toString representation is
major.minor.release.build |
static Version |
valueOf(String version)
Parses a version number from its string representation.
|
public static Version getInstance(int major, int minor, int release, int build)
public static Version valueOf(String version) throws IllegalArgumentException
IllegalArgumentExceptiontoString()public String toString()
major.minor.release.buildtoString in class ObjectvalueOf(String)public int getMajor()
public int getMinor()
public int getRelease()
public int getBuild()
Copyright © 2000–2016 AO Industries, Inc.. All rights reserved.