Adding javadoc for public method
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1065207 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0e61e227bc
commit
bf42bd5d14
|
@ -43,6 +43,17 @@ public enum JavaVersion {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether this version of Java is at least the version
|
||||||
|
* of Java passed in.
|
||||||
|
*
|
||||||
|
* For example:
|
||||||
|
* myVersion.atLeast(JavaVersion.JAVA_1_4)
|
||||||
|
*
|
||||||
|
* @param requiredVersion to check this version is at least equivalent to
|
||||||
|
*
|
||||||
|
* @return Whether this version is at least the passed in version
|
||||||
|
*/
|
||||||
public boolean atLeast(JavaVersion requiredVersion) {
|
public boolean atLeast(JavaVersion requiredVersion) {
|
||||||
return this.value >= requiredVersion.value;
|
return this.value >= requiredVersion.value;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue