public class yacyVersion extends java.lang.Object implements java.util.Comparator<yacyVersion>, java.lang.Comparable<yacyVersion>
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
dateStamp |
private boolean |
mainRelease |
private java.lang.String |
name |
private double |
releaseNr |
private int |
svn |
private static yacyVersion |
thisVersion |
static double |
YACY_HANDLES_COLLECTION_INDEX |
static double |
YACY_POVIDES_REMOTECRAWL_LISTS |
static double |
YACY_SUPPORTS_GZIP_POST_REQUESTS_CHUNKED |
Constructor and Description |
---|
yacyVersion(java.lang.String release,
java.lang.String host)
parse a release file name
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String[] |
combined2prettyVersion(java.lang.String ver)
Converts combined version-string to a pretty string, e.g.
|
static java.lang.String[] |
combined2prettyVersion(java.lang.String ver,
java.lang.String computerName) |
int |
compare(yacyVersion v0,
yacyVersion v1)
compare-operator for two yacyVersion objects
must be implemented to make it possible to put this object into
a ordered structure, like TreeSet or TreeMap
|
int |
compareTo(yacyVersion obj)
returns 0 if this object is equal to the obj, -1 if this is smaller
than obj and 1 if this is greater than obj
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDateStamp()
Timestamp of this version
|
java.lang.String |
getName() |
double |
getReleaseGitNr() |
double |
getReleaseNr()
release number as Double (e.
|
int |
getSvn()
SVN revision of release
|
int |
hashCode() |
boolean |
isMainRelease()
Whether this is a stable main release or not
|
static void |
main(java.lang.String[] args) |
static int |
revision(java.lang.String ver) |
static yacyVersion |
thisVersion() |
static double |
versvn2combinedVersion(double version,
int svn)
Combines the version of YaCy with the versionnumber from SVN to a
combined version
|
public static final double YACY_SUPPORTS_GZIP_POST_REQUESTS_CHUNKED
public static final double YACY_HANDLES_COLLECTION_INDEX
public static final double YACY_POVIDES_REMOTECRAWL_LISTS
private static yacyVersion thisVersion
private double releaseNr
private final java.lang.String dateStamp
private int svn
private final boolean mainRelease
private final java.lang.String name
public yacyVersion(java.lang.String release, java.lang.String host)
the have the following form:
release
- public static final yacyVersion thisVersion()
public int compareTo(yacyVersion obj)
compareTo
in interface java.lang.Comparable<yacyVersion>
public int compare(yacyVersion v0, yacyVersion v1)
compare
in interface java.util.Comparator<yacyVersion>
public boolean equals(java.lang.Object obj)
equals
in interface java.util.Comparator<yacyVersion>
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static java.lang.String[] combined2prettyVersion(java.lang.String ver)
ver
- Combined version string matching regular expression: "\A(\d+\.\d{3})(\d{4}|\d{5})\z" public static java.lang.String[] combined2prettyVersion(java.lang.String ver, java.lang.String computerName)
public static int revision(java.lang.String ver)
public static double versvn2combinedVersion(double version, int svn)
version
- Current given version.svn
- Current version given from SVN.public java.lang.String getDateStamp()
public int getSvn()
public boolean isMainRelease()
public double getReleaseNr()
public double getReleaseGitNr()
public java.lang.String getName()
public static void main(java.lang.String[] args)