@Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }

        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }

        ClickHouseVersionUtils other = (ClickHouseVersionUtils) obj;
        return (latest && other.latest) || latest == other.latest && year == other.year && feature == other.feature
                && maintenance == other.maintenance && build == other.build;
    }
Checks if the version is valid according to the given maven-like version
range.

@param range version range, null or empty string means always invalid
@return true if the version is valid; false otherwise
clickhouse-client/src/main/java/com/clickhouse/client/ClickHouseVersionUtils.java