Author: ron.sigal(a)jboss.com
Date: 2008-03-06 03:11:46 -0500 (Thu, 06 Mar 2008)
New Revision: 3568
Modified:
remoting2/branches/2.x/src/main/org/jboss/remoting/Version.java
Log:
JBREM-764: Added performVersion(int version) and isValidVersion(int version).
Modified: remoting2/branches/2.x/src/main/org/jboss/remoting/Version.java
===================================================================
--- remoting2/branches/2.x/src/main/org/jboss/remoting/Version.java 2008-03-06 08:09:16
UTC (rev 3567)
+++ remoting2/branches/2.x/src/main/org/jboss/remoting/Version.java 2008-03-06 08:11:46
UTC (rev 3568)
@@ -100,4 +100,14 @@
{
return performVersioning;
}
+
+ public static boolean performVersioning(int version)
+ {
+ return version >= 2;
+ }
+
+ public static boolean isValidVersion(int version)
+ {
+ return version == VERSION_1 || version == VERSION_2 || version == VERSION_2_2;
+ }
}
\ No newline at end of file