Overview | Package | Class | Deprecated | Index | Help
| Groovy Documentation
| FRAMES NO FRAMES
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTSFIELD | METHOD

## org.gradle.api
[Java] Enum JavaVersion

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

    public enum JavaVersion

An enumeration of Java versions.

Method Summary
`java.lang.String` | `toString()`
`static JavaVersion` | `toVersion(java.lang.Object value)` Converts the given object into a `JavaVersion`.

Methods inherited from class java.lang.Object
java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString()

Method Detail

### toString

    @Override
    public java.lang.String toString()

### toVersion

    public static JavaVersion toVersion(java.lang.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.

Groovy Documentation