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:
Henri Yandell 2011-01-30 07:35:35 +00:00
parent 0e61e227bc
commit bf42bd5d14
1 changed files with 11 additions and 0 deletions

View File

@ -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;
} }