public static boolean hasJavaVersion(JAVA_VERSION version){
  return (Version.compareVersions(getJavaVersion(),version.get()) > 0) ? true : false;
}

public static boolean hasJavaVersion ( JAVA_VERSION version ) { return ( Version . compareVersions ( getJavaVersion ( ) , version . get ( ) ) > 0 ) ? true : false ; }
compare the current java version with a given version .
