Groovy Documentation

org.gradle.api
[Java] Enum JavaVersion

java.lang.Object
  java.lang.Enum
      org.gradle.api.JavaVersion

public enum JavaVersion
extends Enum

An enumeration of Java versions.


Method Summary
String toString()

static JavaVersion toVersion(Object value)

Converts the given object into a JavaVersion.

 
Methods inherited from class Enum
name, equals, toString, hashCode, compareTo, compareTo, valueOf, getDeclaringClass, ordinal, wait, wait, wait, getClass, notify, notifyAll
 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Method Detail

toString

@Override
public String toString()


toVersion

public static JavaVersion toVersion(Object value)
Converts the given object into a JavaVersion.
throws:
IllegalArgumentException when the provided value cannot be converted.
Parameters:
value - An object whose toString() value is to be converted. May be null.
Returns:
The version, or null if the provided value is null.


 

Gradle API 1.0-milestone-8a