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;
 }
Example #2
0
 private void validateVersion() throws SQLException {
   if (version.getMajorVersion() != 1 || version.getMinorVersion() < 5)
     throw new SQLException("Unsupported Neo4j version:" + version);
 }