|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectopennlp.tools.util.Version
public class Version
The Version class represents the OpenNlp Tools library version.
The version has three parts:
| Field Summary | |
|---|---|
static Version |
DEV_VERSION
|
| Constructor Summary | |
|---|---|
Version(int major,
int minor,
int revision)
Initializes the current instance with the provided versions. |
|
Version(int major,
int minor,
int revision,
boolean snapshot)
Initializes the current instance with the provided versions. |
|
| Method Summary | |
|---|---|
static Version |
currentVersion()
Retrieves the current version of the OpenNlp Tools library. |
boolean |
equals(Object o)
|
int |
getMajor()
Retrieves the major version. |
int |
getMinor()
Retrieves the minor version. |
int |
getRevision()
Retrieves the revision version. |
boolean |
isSnapshot()
|
static Version |
parse(String version)
Return a new Version initialized to the value
represented by the specified String |
String |
toString()
Retrieves the version string. |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Version DEV_VERSION
| Constructor Detail |
|---|
public Version(int major,
int minor,
int revision,
boolean snapshot)
major - minor - revision - snapshot -
public Version(int major,
int minor,
int revision)
major - minor - revision - | Method Detail |
|---|
public int getMajor()
public int getMinor()
public int getRevision()
public boolean isSnapshot()
public String toString()
parse(String) method can create an instance
of Version with the returned version value string.
toString in class Objectpublic boolean equals(Object o)
equals in class Objectpublic static Version parse(String version)
Version initialized to the value
represented by the specified String
version - the string to be parsed
NumberFormatException - if the string does
not contain a valid versionpublic static Version currentVersion()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||