public boolean inRange(Version v) { if (min != null && v.compareTo(min) < 0) return false; if (max != null && v.compareTo(max) > 0) return false; return true; }
private void validateVersion() throws SQLException { if (version.getMajorVersion() != 1 || version.getMinorVersion() < 5) throw new SQLException("Unsupported Neo4j version:" + version); }