it.geosolutions.jaiext.range.Range.isMinIncluded()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(6.6k)|赞(0)|评价(0)|浏览(142)

本文整理了Java中it.geosolutions.jaiext.range.Range.isMinIncluded方法的一些代码示例,展示了Range.isMinIncluded的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Range.isMinIncluded方法的具体详情如下:
包路径:it.geosolutions.jaiext.range.Range
类名称:Range
方法名:isMinIncluded

Range.isMinIncluded介绍

[英]Returns the a boolean indicating if the Minimum 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

minIncluded = other.isMinIncluded();
} else if(min2 == minValue){
  minIncluded |= other.isMinIncluded();

代码示例来源:origin: geosolutions-it/jai-ext

minIncluded = other.isMinIncluded();
} else if(min2 == minValue){
  minIncluded |= other.isMinIncluded();

代码示例来源:origin: it.geosolutions.jaiext.utilities/jt-utilities

minIncluded = other.isMinIncluded();
} else if(min2 == minValue){
  minIncluded |= other.isMinIncluded();

代码示例来源:origin: it.geosolutions.jaiext.utilities/jt-utilities

minIncluded = other.isMinIncluded();
} else if(min2 == minValue){
  minIncluded |= other.isMinIncluded();

代码示例来源:origin: it.geosolutions.jaiext.utilities/jt-utilities

minIncluded = other.isMinIncluded();
} else if(min2 == minValue){
  minIncluded |= other.isMinIncluded();

代码示例来源:origin: it.geosolutions.jaiext.utilities/jt-utilities

minIncluded = other.isMinIncluded();
} else if(min2 == minValue){
  minIncluded |= other.isMinIncluded();

代码示例来源:origin: geosolutions-it/jai-ext

minIncluded = other.isMinIncluded();
} else if(min2 == minValue){
  minIncluded |= other.isMinIncluded();

代码示例来源:origin: geotools/geotools

true,
    nodata.getMin().doubleValue(),
    !nodata.isMinIncluded()),
(byte) 255);

代码示例来源:origin: it.geosolutions.jaiext.utilities/jt-utilities

minIncluded = other.isMinIncluded();
} else if(min2 == minValue){
  minIncluded |= other.isMinIncluded();

代码示例来源:origin: it.geosolutions.jaiext.utilities/jt-utilities

minIncluded = other.isMinIncluded();
} else if(min2 == minValue){
  minIncluded |= other.isMinIncluded();

相关文章