org.jmythapi.database
Class DatabaseVersionRange

java.lang.Object
  extended by org.jmythapi.impl.AVersionRange<DatabaseVersion>
      extended by org.jmythapi.database.DatabaseVersionRange

public class DatabaseVersionRange
extends AVersionRange<DatabaseVersion>


Field Summary
static DatabaseVersionRange DEFAULT_RANGE
           
 
Fields inherited from class org.jmythapi.impl.AVersionRange
fromVersion, toVersion
 
Constructor Summary
DatabaseVersionRange(DatabaseVersion from, DatabaseVersion to)
           
DatabaseVersionRange(MythDatabaseVersionAnnotation versionRange)
           
 
Method Summary
 boolean isInRange(int dbVersion)
          Checks if the specified protocol-version is in this version-range.
 
Methods inherited from class org.jmythapi.impl.AVersionRange
equals, from, isInRange, to, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_RANGE

public static final DatabaseVersionRange DEFAULT_RANGE
Constructor Detail

DatabaseVersionRange

public DatabaseVersionRange(MythDatabaseVersionAnnotation versionRange)

DatabaseVersionRange

public DatabaseVersionRange(DatabaseVersion from,
                            DatabaseVersion to)
Method Detail

isInRange

public boolean isInRange(int dbVersion)
Description copied from class: AVersionRange
Checks if the specified protocol-version is in this version-range.

Specified by:
isInRange in class AVersionRange<DatabaseVersion>
Parameters:
dbVersion - the protocol-version to check
Returns:
true if the given version is in the range.


Copyright © 2008-2013. All Rights Reserved.