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