Class GwtVersion
- java.lang.Object
-
- org.docstr.gradle.plugins.gwt.internal.GwtVersion
-
public final class GwtVersion extends java.lang.Object
A representation of a parsed GWT version string.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMajor()
int
getMinor()
java.lang.String
getPatch()
boolean
isAtLeast(int majorMin, int minorMin)
static GwtVersion
parse(java.lang.String gwtVersion)
java.lang.String
toString()
-
-
-
Method Detail
-
parse
public static GwtVersion parse(java.lang.String gwtVersion)
- Parameters:
gwtVersion
- the gwt version string to be parsed- Returns:
- a newly created GwtVersion instance representing the parsed GWT version string argument. null if gwtVersion is null or empty.
- Throws:
java.lang.IllegalArgumentException
- if any of the passed arguments are invalid
-
getMajor
public int getMajor()
-
getMinor
public int getMinor()
-
getPatch
public java.lang.String getPatch()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- Returns:
- the original parsed string
-
isAtLeast
public boolean isAtLeast(int majorMin, int minorMin)
-
-