public class JavaEEVersion extends Object implements Comparable<JavaEEVersion>
Modifier and Type | Field and Description |
---|---|
static JavaEEVersion |
EIGHT
Represents the JavaEE 8 version.
|
static JavaEEVersion |
FIVE
Represents the JavaEE 5 version.
|
static JavaEEVersion |
NINE
Represents the JakartaEE 9 version.
|
static JavaEEVersion |
ONE_DOT_FOUR
Represents the J2EE 1.4 version.
|
static JavaEEVersion |
ONE_DOT_THREE
Represents the J2EE 1.3 version.
|
static JavaEEVersion |
SEVEN
Represents the JavaEE 7 version.
|
static JavaEEVersion |
SIX
Represents the JavaEE 6 version.
|
static JavaEEVersion |
TEN
Represents the JakartaEE 10 version.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(JavaEEVersion otherVersion) |
boolean |
eq(JavaEEVersion paramVersion)
Specifies if this version is equal to the specified version.
|
boolean |
ge(JavaEEVersion paramVersion)
Specifies if this version is greater or equal to the specified version.
|
static JavaEEVersion |
getJavaEEVersion(String paramVersion) |
String |
getVersion()
Returns the version as a string.
|
boolean |
gt(JavaEEVersion paramVersion)
Specifies if this version is greater than the specified version.
|
boolean |
le(JavaEEVersion paramVersion)
Specifies if this version is less or equal to the specified version.
|
boolean |
lt(JavaEEVersion paramVersion)
Specifies if this version is less than the specified version.
|
public static final JavaEEVersion ONE_DOT_THREE
public static final JavaEEVersion ONE_DOT_FOUR
public static final JavaEEVersion FIVE
public static final JavaEEVersion SIX
public static final JavaEEVersion SEVEN
public static final JavaEEVersion EIGHT
public static final JavaEEVersion NINE
public static final JavaEEVersion TEN
public static JavaEEVersion getJavaEEVersion(String paramVersion) throws InvalidJavaEEVersion
paramVersion
- The version.JavaEEVersion
InvalidJavaEEVersion
- in case of a wrong version.public String getVersion()
public boolean ge(JavaEEVersion paramVersion)
paramVersion
- the version to checkversion
public boolean gt(JavaEEVersion paramVersion)
paramVersion
- the version to checkversion
public boolean eq(JavaEEVersion paramVersion)
paramVersion
- the version to checkversion
public boolean le(JavaEEVersion paramVersion)
paramVersion
- the version to checkversion
public boolean lt(JavaEEVersion paramVersion)
paramVersion
- the version to checkversion
public int compareTo(JavaEEVersion otherVersion)
compareTo
in interface Comparable<JavaEEVersion>
Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.