net.sf.asterisk
Class AsteriskVersion

java.lang.Object
  extended by net.sf.asterisk.AsteriskVersion
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public class AsteriskVersion
extends java.lang.Object
implements java.lang.Comparable, java.io.Serializable

Represents the version of an Asterisk server.

Since:
0.2
Version:
$Id: AsteriskVersion.java,v 1.1 2005/10/29 12:00:11 srt Exp $
Author:
srt
See Also:
Serialized Form

Field Summary
static AsteriskVersion ASTERISK_1_0
          Represents the Asterisk 1.0 series.
static AsteriskVersion ASTERISK_1_2
          Represents the Asterisk 1.2 series.
 
Method Summary
 int compareTo(java.lang.Object o)
           
 boolean isAtLeast(AsteriskVersion o)
          Returns true if this version is equal to or higher than the given version.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ASTERISK_1_0

public static final AsteriskVersion ASTERISK_1_0
Represents the Asterisk 1.0 series.


ASTERISK_1_2

public static final AsteriskVersion ASTERISK_1_2
Represents the Asterisk 1.2 series.

Method Detail

isAtLeast

public boolean isAtLeast(AsteriskVersion o)
Returns true if this version is equal to or higher than the given version.

Parameters:
o - the version to compare to
Returns:
true if this version is equal to or higher than the given version.

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2004-2005 Stefan Reuter. All Rights Reserved.