TV-Browser 2.7.5 API

devplugin
Class Version

java.lang.Object
  extended by devplugin.Version
All Implemented Interfaces:
Comparable

public final class Version
extends Object
implements Comparable

A class for the Version value off TV-Browser and it's plugins.


Constructor Summary
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.
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Version

public Version(int major,
               int minor)
Creates an instance of this class.

Parameters:
major - The major version (the first number).
minor - The minor version (used for the second and third number).

Version

public Version(int major,
               int minor,
               boolean isStable)
Creates an instance of this class.

Parameters:
major - The major version (the first number).
minor - The minor version (used for the second and third number).
isStable - If the version is stable.

Version

public Version(int major,
               int minor,
               boolean isStable,
               String name)
Creates an instance of this class.

Parameters:
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.

Version

public Version(int major,
               int minor,
               int subMinor)
Creates an instance of this class.

Parameters:
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).
Since:
2.2.4/2.6

Version

public Version(int major,
               int minor,
               int subMinor,
               boolean isStable)
Creates an instance of this class.

Parameters:
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.
Since:
2.2.4/2.6

Version

public Version(int major,
               int minor,
               int subMinor,
               boolean isStable,
               String name)
Creates an instance of this class.

Parameters:
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.
Since:
2.2.4/2.6
Method Detail

toString

public String toString()
Overrides:
toString in class Object

isStable

public boolean isStable()
Gets if this version is stable.

Returns:
True if the version is stable, false otherwise.

getMajor

public int getMajor()
Gets the major version.

Returns:
The major version (first number).

getMinor

public int getMinor()
Gets the minor version.

Returns:
The minor version (seconds and third number).

getSubMinor

public int getSubMinor()
Gets the sub minor version

Returns:
The sub minor version (4th number).

compareTo

public int compareTo(Object obj)
              throws ClassCastException
Specified by:
compareTo in interface Comparable
Throws:
ClassCastException

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

TV-Browser 2.7.5 API

TV-Browser 2.7.5, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)