-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
484 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ Adheres to [Semantic Versioning](http://semver.org/). | |
|
||
--- | ||
|
||
## 6.6.6 (TBD) | ||
## 6.6.7 (TBD) | ||
|
||
* TBD | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} |
Oops, something went wrong.