|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object devplugin.Version
public final class Version
A class for the Version value off TV-Browser and it's plugins.
Constructor Summary | |
---|---|
Version(java.io.DataInputStream in)
Creates an instance of this class from the given stream |
|
Version(int major,
int minor)
Creates an instance of this class. |
|
Version(int major,
int minor,
boolean isStable)
Creates an instance of this class. |
|
Version(int major,
int minor,
boolean isStable,
java.lang.String name)
Creates an instance of this class. |
|
Version(int major,
int minor,
int subMinor)
Creates an instance of this class. |
|
Version(int major,
int minor,
int subMinor,
boolean isStable)
Creates an instance of this class. |
|
Version(int major,
int minor,
int subMinor,
boolean isStable,
java.lang.String name)
Creates an instance of this class. |
Method Summary | |
---|---|
int |
compareTo(Version v)
|
boolean |
equals(java.lang.Object obj)
|
int |
getMajor()
Gets the major version. |
int |
getMinor()
Gets the minor version. |
int |
getSubMinor()
Gets the sub minor version |
int |
hashCode()
|
boolean |
isStable()
Gets if this version is stable. |
java.lang.String |
toString()
|
void |
writeData(java.io.DataOutputStream out)
Writes this object to a stream. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Version(int major, int minor)
major
- The major version (the first number).minor
- The minor version (used for the second and third number).public Version(int major, int minor, boolean isStable)
major
- The major version (the first number).minor
- The minor version (used for the second and third number).isStable
- If the version is stable.public Version(int major, int minor, boolean isStable, java.lang.String name)
major
- The major version (the first number).minor
- The minor version (used for the second and third number).isStable
- If the version is stable.name
- The name String of this version, use null
to let the name be created from the version numbers.public Version(int major, int minor, int subMinor)
major
- The major version (the first number).minor
- The minor version (used for the second and third number).subMinor
- The sub minor version (the 4th number).public Version(int major, int minor, int subMinor, boolean isStable)
major
- The major version (the first number).minor
- The minor version (used for the second and third number).subMinor
- The sub minor version (the 4th number).isStable
- If the version is stable.public Version(int major, int minor, int subMinor, boolean isStable, java.lang.String name)
major
- The major version (the first number).minor
- The minor version (used for the second and third number).subMinor
- The sub minor version (the 4th number).isStable
- If the version is stable.name
- The name String of this version, use null
to let the name be created from the version numbers.public Version(java.io.DataInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException
in
- The stream to read the version from.
java.io.IOException
- Thrown if something went wrong.
java.lang.ClassNotFoundException
- Thrown if something went wrong.Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isStable()
True
if the version is stable,
false
otherwise.public int getMajor()
public int getMinor()
public int getSubMinor()
public int compareTo(Version v) throws java.lang.ClassCastException
compareTo
in interface java.lang.Comparable<Version>
java.lang.ClassCastException
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void writeData(java.io.DataOutputStream out) throws java.io.IOException
out
- The stream to write to.
java.io.IOException
- Thrown if something went wrong.
|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |