Package com.identityworksllc.iiq.common
Enum IIQVersion.Version
- java.lang.Object
-
- java.lang.Enum<IIQVersion.Version>
-
- com.identityworksllc.iiq.common.IIQVersion.Version
-
- All Implemented Interfaces:
Serializable,Comparable<IIQVersion.Version>
- Enclosing class:
- IIQVersion
public static enum IIQVersion.Version extends Enum<IIQVersion.Version>
The supported versions of IIQ, along with the features they introduce and the minimum Java version they require.Each version points to its previous version, forming a chain back to the first supported version (7.3).
A version supports a feature if it or any previous version in the chain supports and does not remove the feature.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LatestThe latest known version of IIQ.V7_3IIQ 7.3V8_0IIQ 8.0V8_1IIQ 8.1V8_1_P1IIQ 8.1p1V8_1_P2IIQ 8.1p2V8_1_P3IIQ 8.1p3V8_1_P4IIQ 8.1p4V8_2IIQ 8.2V8_2_P1IIQ 8.2p1V8_2_P2IIQ 8.2p2V8_2_P3IIQ 8.2p3V8_2_P4IIQ 8.2p4V8_2_P5IIQ 8.2p5V8_2_P6IIQ 8.2p6V8_2_P7IIQ 8.2p7V8_3IIQ 8.3V8_3_P1IIQ 8.3p1V8_3_P2IIQ 8.3p2V8_3_P3IIQ 8.3p3V8_3_P4IIQ 8.3p4V8_3_P5IIQ 8.3p5V8_4IIQ 8.4V8_4_P1IIQ 8.4p1V8_4_P2IIQ 8.4p2V8_4_P3IIQ 8.4p3V8_5IIQ 8.5V8_5_P1IIQ 8.5p1
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanatLeast(IIQVersion.Version otherVersion)Returns true if this version is at least the specified other version.IIQVersion.VersiongetBaseVersion()Gets the base version (e.g., V8_1 for V8_1_P3)doublegetMajorVersion()Gets the major version of IIQ as a numberIIQVersion.VersiongetPrevious()Gets the previous version in the chain, or null if this is the first versionbooleansupportsFeature(IIQFeature feature)Returns true if this version of IIQ supports the given feature.booleansupportsJavaVersion(int version)Returns true if this version of IIQ requires at least the given Java version.static IIQVersion.VersionvalueOf(String name)Returns the enum constant of this type with the specified name.static IIQVersion.Version[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
V7_3
public static final IIQVersion.Version V7_3
IIQ 7.3
-
V8_0
public static final IIQVersion.Version V8_0
IIQ 8.0
-
V8_1
public static final IIQVersion.Version V8_1
IIQ 8.1
-
V8_1_P1
public static final IIQVersion.Version V8_1_P1
IIQ 8.1p1
-
V8_1_P2
public static final IIQVersion.Version V8_1_P2
IIQ 8.1p2
-
V8_1_P3
public static final IIQVersion.Version V8_1_P3
IIQ 8.1p3
-
V8_1_P4
public static final IIQVersion.Version V8_1_P4
IIQ 8.1p4
-
V8_2
public static final IIQVersion.Version V8_2
IIQ 8.2
-
V8_2_P1
public static final IIQVersion.Version V8_2_P1
IIQ 8.2p1
-
V8_2_P2
public static final IIQVersion.Version V8_2_P2
IIQ 8.2p2
-
V8_2_P3
public static final IIQVersion.Version V8_2_P3
IIQ 8.2p3
-
V8_2_P4
public static final IIQVersion.Version V8_2_P4
IIQ 8.2p4
-
V8_2_P5
public static final IIQVersion.Version V8_2_P5
IIQ 8.2p5
-
V8_2_P6
public static final IIQVersion.Version V8_2_P6
IIQ 8.2p6
-
V8_2_P7
public static final IIQVersion.Version V8_2_P7
IIQ 8.2p7
-
V8_3
public static final IIQVersion.Version V8_3
IIQ 8.3
-
V8_3_P1
public static final IIQVersion.Version V8_3_P1
IIQ 8.3p1
-
V8_3_P2
public static final IIQVersion.Version V8_3_P2
IIQ 8.3p2
-
V8_3_P3
public static final IIQVersion.Version V8_3_P3
IIQ 8.3p3
-
V8_3_P4
public static final IIQVersion.Version V8_3_P4
IIQ 8.3p4
-
V8_3_P5
public static final IIQVersion.Version V8_3_P5
IIQ 8.3p5
-
V8_4
public static final IIQVersion.Version V8_4
IIQ 8.4
-
V8_4_P1
public static final IIQVersion.Version V8_4_P1
IIQ 8.4p1
-
V8_4_P2
public static final IIQVersion.Version V8_4_P2
IIQ 8.4p2
-
V8_4_P3
public static final IIQVersion.Version V8_4_P3
IIQ 8.4p3
-
V8_5
public static final IIQVersion.Version V8_5
IIQ 8.5
-
V8_5_P1
public static final IIQVersion.Version V8_5_P1
IIQ 8.5p1
-
Latest
public static final IIQVersion.Version Latest
The latest known version of IIQ.This will be updated with each new release.
-
-
Method Detail
-
values
public static IIQVersion.Version[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (IIQVersion.Version c : IIQVersion.Version.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IIQVersion.Version valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
atLeast
public boolean atLeast(IIQVersion.Version otherVersion)
Returns true if this version is at least the specified other version.If the other version is a patch version, it will be rewound back to its base version for comparison.
So for example, V8_1_P3.atLeast(V8_1_P1) will return true, as will V8_1_P3.atLeast(V8_1).
Null indicates the earliest possible version, so this will always return true for null input.
- Parameters:
otherVersion- the other version to compare against- Returns:
- true if this version is at least the other version, false otherwise
-
getBaseVersion
public IIQVersion.Version getBaseVersion()
Gets the base version (e.g., V8_1 for V8_1_P3)- Returns:
- The base version
-
getMajorVersion
public double getMajorVersion()
Gets the major version of IIQ as a number- Returns:
- The major version (e.g., 8.3)
-
getPrevious
public IIQVersion.Version getPrevious()
Gets the previous version in the chain, or null if this is the first version- Returns:
- The previous version, or null
-
supportsFeature
public boolean supportsFeature(IIQFeature feature)
Returns true if this version of IIQ supports the given feature.This version and all parent versions will be checked.
- Parameters:
feature- The feature to check- Returns:
- True if supported, false otherwise
-
supportsJavaVersion
public boolean supportsJavaVersion(int version)
Returns true if this version of IIQ requires at least the given Java version.For 8.3, for example, this will return true for 11 and 8. For 8.4, it will return false for 8 and true for 11.
- Parameters:
version- The Java version to check- Returns:
- True if supported, false otherwise
-
-