Class GwtVersion
- java.lang.Object
-
- org.docstr.gradle.plugins.gwt.internal.GwtVersion
-
public final class GwtVersion extends java.lang.ObjectA representation of a parsed GWT version string.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMajor()intgetMinor()java.lang.StringgetPatch()booleanisAtLeast(int majorMin, int minorMin)static GwtVersionparse(java.lang.String gwtVersion)java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object- Returns:
- the original parsed string
-
isAtLeast
public boolean isAtLeast(int majorMin, int minorMin)
-
-