public final class Version extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
FORMAT |
static String |
FORMAT_SHORT |
| Modifier and Type | Method and Description |
|---|---|
String |
build()
Returns the version build string.
|
boolean |
equals(Object obj) |
int |
hashCode() |
int |
major()
Returns the major version number.
|
int |
minor()
Returns the minor version number.
|
String |
patch()
Returns the version patch segment.
|
String |
toString() |
static Version |
version(int major,
int minor,
String patch,
String build)
Creates a new version from the specified constituent numbers.
|
static Version |
version(String string)
Creates a new version by parsing the specified string.
|
public static final String FORMAT
public static final String FORMAT_SHORT
public static Version version(int major, int minor, String patch, String build)
major - major version numberminor - minod version numberpatch - version patch segmentbuild - optional build stringpublic static Version version(String string)
string - version stringpublic int major()
public int minor()
public String patch()
public String build()
Copyright © 2015. All rights reserved.