|
||||||||||
| 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:
| Constructor Summary | |
|---|---|
Version(int major,
int minor,
int revision)
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. |
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 |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Version(int major,
int minor,
int revision)
major - minor - revision - | Method Detail |
|---|
public int getMajor()
public int getMinor()
public int getRevision()
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 | |||||||||