compatibleWith
Checks if this version is compatible with another version.
Two versions are considered compatible if they have the same major version number. This follows semantic versioning principles where major version changes indicate breaking changes.
Return
true if both versions have the same major version, false otherwise
Example:
Version("2.1.0").compatibleWith(Version("2.3.1")) // returns true
Version("2.1.0").compatibleWith(Version("3.0.0")) // returns falseContent copied to clipboard
Parameters
other
The version to check compatibility with