Skip to content

Commit

Permalink
user dao range query support
Browse files Browse the repository at this point in the history
  • Loading branch information
bosborn committed Jan 17, 2024
1 parent 215fa24 commit bd80b41
Show file tree
Hide file tree
Showing 4 changed files with 484 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Adheres to [Semantic Versioning](http://semver.org/).

---

## 6.6.6 (TBD)
## 6.6.7 (TBD)

* TBD

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>mil.nga.geopackage</groupId>
<artifactId>geopackage-core</artifactId>
<version>6.6.6</version>
<version>6.6.7</version>
<packaging>jar</packaging>
<name>GeoPackage Core</name>
<url>https://github.com/ngageoint/geopackage-core-java</url>
Expand Down
82 changes: 82 additions & 0 deletions src/main/java/mil/nga/geopackage/user/ColumnRange.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
package mil.nga.geopackage.user;

/**
* Column Range wrapper to specify a range and additional attributes, such as a
* tolerance for floating point numbers
*
* @author osbornb
* @since 6.6.7
*/
public class ColumnRange {

/**
* Min Value
*/
private final Number min;

/**
* Max Value
*/
private final Number max;

/**
* Value tolerance
*/
private final Double tolerance;

/**
* Constructor
*
* @param min
* min value
* @param max
* max value
*/
public ColumnRange(Number min, Number max) {
this(min, max, null);
}

/**
* Constructor
*
* @param min
* min value
* @param max
* max value
* @param tolerance
* tolerance
*/
public ColumnRange(Number min, Number max, Double tolerance) {
this.min = min;
this.max = max;
this.tolerance = tolerance;
}

/**
* Get the min value
*
* @return min value
*/
public Number getMin() {
return min;
}

/**
* Get the max value
*
* @return max value
*/
public Number getMax() {
return max;
}

/**
* Get the tolerance
*
* @return tolerance
*/
public Double getTolerance() {
return tolerance;
}

}
Loading

0 comments on commit bd80b41

Please sign in to comment.