com.uwyn.rife.tools
Class JavaSpecificationUtils

java.lang.Object
  extended by com.uwyn.rife.tools.JavaSpecificationUtils

public abstract class JavaSpecificationUtils
extends Object

Utility class to obtain information about the currently running Java specification.

Since:
1.6
Version:
$Revision: 3634 $
Author:
Geert Bevin (gbevin[remove] at uwyn dot com)

Constructor Summary
JavaSpecificationUtils()
           
 
Method Summary
static double getVersion()
          Retrieves the version of the currently running JVM.
static boolean isAtLeastJdk15()
          Checks if the currently running JVM is at least complient with JDK 1.5.
static boolean isAtLeastJdk16()
          Checks if the currently running JVM is at least complient with JDK 1.6.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaSpecificationUtils

public JavaSpecificationUtils()
Method Detail

getVersion

public static double getVersion()
Retrieves the version of the currently running JVM.

Returns:
the version of the current JVM as a double
Since:
1.6

isAtLeastJdk15

public static boolean isAtLeastJdk15()
Checks if the currently running JVM is at least complient with JDK 1.5.

Returns:
true if the JVM is complient with JDK 1.5; or

false otherwise

Since:
1.6

isAtLeastJdk16

public static boolean isAtLeastJdk16()
Checks if the currently running JVM is at least complient with JDK 1.6.

Returns:
true if the JVM is complient with JDK 1.6; or

false otherwise

Since:
1.6


Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.