@Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + (latest ? 1231 : 1237);
        result = prime * result + year;
        result = prime * result + feature;
        result = prime * result + maintenance;
        result = prime * result + build;
        return result;
    }
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