public final class Version extends Object implements Comparable
Constructor and Description |
---|
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,
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,
String name)
Creates an instance of this class.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object obj) |
boolean |
equals(Object obj) |
int |
getMajor()
Gets the major version.
|
int |
getMinor()
Gets the minor version.
|
int |
getSubMinor()
Gets the sub minor version
|
boolean |
isStable()
Gets if this version is stable.
|
String |
toString() |
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, 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 verison, 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, 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 verison, use null
to let the name be created from the version numbers.public boolean isStable()
True
if the version is stable,
false
otherwise.public int getMajor()
public int getMinor()
public int getSubMinor()
public int compareTo(Object obj) throws ClassCastException
compareTo
in interface Comparable
ClassCastException
TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)