本文整理了Java中it.geosolutions.jaiext.range.Range.isMaxIncluded
方法的一些代码示例,展示了Range.isMaxIncluded
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Range.isMaxIncluded
方法的具体详情如下:
包路径:it.geosolutions.jaiext.range.Range
类名称:Range
方法名:isMaxIncluded
[英]Returns the a boolean indicating if the Maximum bound is included
[中]返回一个布尔值,指示是否包含最大界限
代码示例来源:origin: it.geosolutions.jaiext.utilities/jt-utilities
@Override
public String toString() {
StringBuilder sb = new StringBuilder(getClass().getSimpleName());
if (isMinIncluded()) {
sb.append("[");
} else {
sb.append("(");
}
sb.append(getMin()).append(", ").append(getMax());
if (isMaxIncluded()) {
sb.append("]");
} else {
sb.append(")");
}
return sb.toString();
}
}
代码示例来源:origin: geosolutions-it/jai-ext
@Override
public String toString() {
StringBuilder sb = new StringBuilder(getClass().getSimpleName());
if (isMinIncluded()) {
sb.append("[");
} else {
sb.append("(");
}
sb.append(getMin()).append(", ").append(getMax());
if (isMaxIncluded()) {
sb.append("]");
} else {
sb.append(")");
}
return sb.toString();
}
}
代码示例来源:origin: it.geosolutions.jaiext.utilities/jt-utilities
public static Range convertToByteRange(Range input) {
// If already double do nothing
if (input instanceof RangeByte) {
return input;
}
// Otherwise get minimum and maximum values and convert it
byte min = input.getMin().byteValue();
byte max = input.getMax().byteValue();
boolean minIncluded = input.isMinIncluded();
boolean maxIncluded = input.isMaxIncluded();
// New Double range
return new RangeByte(min, minIncluded, max, maxIncluded);
}
代码示例来源:origin: geosolutions-it/jai-ext
public static Range convertToByteRange(Range input) {
// If already double do nothing
if (input instanceof RangeByte) {
return input;
}
// Otherwise get minimum and maximum values and convert it
byte min = input.getMin().byteValue();
byte max = input.getMax().byteValue();
boolean minIncluded = input.isMinIncluded();
boolean maxIncluded = input.isMaxIncluded();
// New Double range
return new RangeByte(min, minIncluded, max, maxIncluded);
}
代码示例来源:origin: it.geosolutions.jaiext.utilities/jt-utilities
public boolean intersects(Range other) {
// Check if one of them is contained into the other
if (this.contains(other) || other.contains(this)) {
return true;
}
double min1 = this.getMin().doubleValue();
double max1 = this.getMax().doubleValue();
double min2 = other.getMin().doubleValue();
double max2 = other.getMax().doubleValue();
// Check the bounds
boolean minCheck = this.isMinIncluded() && other.isMaxIncluded() ? min1 <= max2
: min1 < max2;
boolean maxCheck = this.isMaxIncluded() && other.isMinIncluded() ? max1 >= min2
: max1 > min2;
return minCheck && maxCheck;
}
代码示例来源:origin: geosolutions-it/jai-ext
public boolean intersects(Range other) {
// Check if one of them is contained into the other
if (this.contains(other) || other.contains(this)) {
return true;
}
double min1 = this.getMin().doubleValue();
double max1 = this.getMax().doubleValue();
double min2 = other.getMin().doubleValue();
double max2 = other.getMax().doubleValue();
// Check the bounds
boolean minCheck = this.isMinIncluded() && other.isMaxIncluded() ? min1 <= max2
: min1 < max2;
boolean maxCheck = this.isMaxIncluded() && other.isMinIncluded() ? max1 >= min2
: max1 > min2;
return minCheck && maxCheck;
}
代码示例来源:origin: it.geosolutions.jaiext.utilities/jt-utilities
public static Range convertToFloatRange(Range input) {
// If already double do nothing
if (input instanceof RangeFloat) {
return input;
}
// Otherwise get minimum and maximum values and convert it
float min = input.getMin().floatValue();
float max = input.getMax().floatValue();
boolean minIncluded = input.isMinIncluded();
boolean maxIncluded = input.isMaxIncluded();
boolean nanIncluded = input.isNanIncluded();
// New Double range
return new RangeFloat(min, minIncluded, max, maxIncluded, nanIncluded);
}
代码示例来源:origin: geosolutions-it/jai-ext
public static Range convertToDoubleRange(Range input) {
// If already double do nothing
if (input instanceof RangeDouble) {
return input;
}
// Otherwise get minimum and maximum values and convert it
double min = input.getMin().doubleValue();
double max = input.getMax().doubleValue();
boolean minIncluded = input.isMinIncluded();
boolean maxIncluded = input.isMaxIncluded();
boolean nanIncluded = input.isNanIncluded();
// New Double range
return new RangeDouble(min, minIncluded, max, maxIncluded, nanIncluded);
}
代码示例来源:origin: it.geosolutions.jaiext.utilities/jt-utilities
public static Range convertToDoubleRange(Range input) {
// If already double do nothing
if (input instanceof RangeDouble) {
return input;
}
// Otherwise get minimum and maximum values and convert it
double min = input.getMin().doubleValue();
double max = input.getMax().doubleValue();
boolean minIncluded = input.isMinIncluded();
boolean maxIncluded = input.isMaxIncluded();
boolean nanIncluded = input.isNanIncluded();
// New Double range
return new RangeDouble(min, minIncluded, max, maxIncluded, nanIncluded);
}
代码示例来源:origin: geosolutions-it/jai-ext
public static Range convertToFloatRange(Range input) {
// If already double do nothing
if (input instanceof RangeFloat) {
return input;
}
// Otherwise get minimum and maximum values and convert it
float min = input.getMin().floatValue();
float max = input.getMax().floatValue();
boolean minIncluded = input.isMinIncluded();
boolean maxIncluded = input.isMaxIncluded();
boolean nanIncluded = input.isNanIncluded();
// New Double range
return new RangeFloat(min, minIncluded, max, maxIncluded, nanIncluded);
}
代码示例来源:origin: it.geosolutions.jaiext.utilities/jt-utilities
maxIncluded = other.isMaxIncluded();
} else if(max2 == maxValue){
maxIncluded |= other.isMaxIncluded();
代码示例来源:origin: geosolutions-it/jai-ext
maxIncluded = other.isMaxIncluded();
} else if(max2 == maxValue){
maxIncluded |= other.isMaxIncluded();
代码示例来源:origin: it.geosolutions.jaiext.utilities/jt-utilities
maxIncluded = other.isMaxIncluded();
} else if(max2 == maxValue){
maxIncluded |= other.isMaxIncluded();
代码示例来源:origin: it.geosolutions.jaiext.utilities/jt-utilities
maxIncluded = other.isMaxIncluded();
} else if(max2 == maxValue){
maxIncluded |= other.isMaxIncluded();
代码示例来源:origin: it.geosolutions.jaiext.utilities/jt-utilities
maxIncluded = other.isMaxIncluded();
} else if(max2 == maxValue){
maxIncluded |= other.isMaxIncluded();
代码示例来源:origin: it.geosolutions.jaiext.utilities/jt-utilities
maxIncluded = other.isMaxIncluded();
} else if(max2 == maxValue){
maxIncluded |= other.isMaxIncluded();
代码示例来源:origin: geosolutions-it/jai-ext
maxIncluded = other.isMaxIncluded();
} else if(max2 == maxValue){
maxIncluded |= other.isMaxIncluded();
代码示例来源:origin: geotools/geotools
RangeFactory.create(
nodata.getMax().doubleValue(),
!nodata.isMaxIncluded(),
Double.POSITIVE_INFINITY,
false),
代码示例来源:origin: it.geosolutions.jaiext.utilities/jt-utilities
maxIncluded = other.isMaxIncluded();
} else if(max2 == maxValue){
maxIncluded |= other.isMaxIncluded();
代码示例来源:origin: it.geosolutions.jaiext.utilities/jt-utilities
maxIncluded = other.isMaxIncluded();
} else if(max2 == maxValue){
maxIncluded |= other.isMaxIncluded();
内容来源于网络,如有侵权,请联系作者删除!