Interface ISupportedVersion
- All Known Implementing Classes:
ChSupportedVersion,MsSupportedVersion,PgSupportedVersion
public interface ISupportedVersion
Interface for supported database versions.
Provides version comparison and lookup functionality for database compatibility checking.
-
Method Summary
Modifier and TypeMethodDescriptiongetText()intdefault booleanisLE(int version) Checks if this version is less than or equal to the specified version.static <T extends ISupportedVersion>
TvalueOf(int checkVersion, T[] versions, T defaultValue) Returns the highest supported version that is less than or equal to the specified version.
-
Method Details
-
getVersion
int getVersion() -
getText
String getText() -
isLE
default boolean isLE(int version) Checks if this version is less than or equal to the specified version.- Parameters:
version- the version to compare against- Returns:
- true if this version is less than or equal to the specified version
-
valueOf
Returns the highest supported version that is less than or equal to the specified version. If no matching version is found, returns default value.- Parameters:
checkVersion- the version to checkversions- supported versionsdefaultValue- default value
-