|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bramosystems.oss.player.core.client.PluginVersion
public class PluginVersion
Wraps the major, minor and revision numbers of a browser plugin component.
| Constructor Summary | |
|---|---|
PluginVersion()
Creates a PluginVersion |
|
PluginVersion(int major,
int minor,
int revision)
Creates a PluginVersion with the specified minor, major and revision numbers. |
|
| Method Summary | |
|---|---|
int |
compareTo(int major,
int minor,
int revision)
Convenience method to compare this PluginVersion with a PluginVersion with the specified major, minor and revision numbers. |
int |
compareTo(PluginVersion o)
Compares this PluginVersion with the specified PluginVersion. |
boolean |
equals(java.lang.Object obj)
Indicates if some other object is equal to this one. |
static PluginVersion |
get(int major,
int minor,
int revision)
Static method to create a PluginVersion with the specified minor,
major and revision numbers. |
static PluginVersion |
get(java.lang.String version)
Static method to create a PluginVersion with the specified version string. |
int |
getMajor()
Gets major version number. |
int |
getMinor()
Gets minor version number |
int |
getRevision()
Gets the revsion number |
int |
hashCode()
|
void |
setMajor(int major)
Sets the major version number. |
void |
setMinor(int minor)
Sets minor version number |
void |
setRevision(int revision)
Sets the revision number of this PluginVersion object |
java.lang.String |
toString()
Returns a String representation of this PluginVersion in the format major.minor.revision. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PluginVersion()
PluginVersion
public PluginVersion(int major,
int minor,
int revision)
PluginVersion with the specified minor, major and revision numbers.
major - major version numberminor - minor version numberrevision - revision number| Method Detail |
|---|
public static PluginVersion get(int major,
int minor,
int revision)
PluginVersion with the specified minor,
major and revision numbers.
major - major version numberminor - minor version numberrevision - revision number
PluginVersion object with specified version numbers.
public static PluginVersion get(java.lang.String version)
throws RegExp.RegexException
PluginVersion with the specified version string.
version - the version in the format major.minor.revision.
PluginVersion object with specified version numbers.
RegExp.RegexException - if version is not in the required formatpublic int getMinor()
public void setMinor(int minor)
minor - public int getMajor()
public void setMajor(int major)
major - public int getRevision()
public void setRevision(int revision)
revision - public boolean equals(java.lang.Object obj)
PluginVersion's
are equal if their major, minor and revision numbers are equal.
equals in class java.lang.Objectobj - the other PluginVersion object
true if and only if obj is same as this object,
false otherwise.public int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(PluginVersion o)
compareTo in interface java.lang.Comparable<PluginVersion>o - the PluginVersion to compare with this one.
0 if this PluginVersion is the same as the specified PluginVersion,
-1 if this PluginVersion is less than the specified PluginVersion and 1
if this PluginVersion is greater than the specified PluginVersion.compareTo(int, int, int)
public int compareTo(int major,
int minor,
int revision)
major - major version numberminor - minor version numberrevision - revision number
0 if this PluginVersion is the same as the specified PluginVersion,
-1 if this PluginVersion is less than the specified PluginVersion and 1
if this PluginVersion is greater than the specified PluginVersion.compareTo(PluginVersion o)public java.lang.String toString()
major.minor.revision.
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||