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

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

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

Range.equals介绍

暂无

代码示例

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

public static boolean equals(Range outputRange, Range outputRange2) {
    return outputRange.equals(outputRange2);
  }
}

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

public static boolean equals(Range outputRange, Range outputRange2) {
    return outputRange.equals(outputRange2);
  }
}

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

|| (oldNoData != null
            && nodata != null
            && oldNoData.equals(nodata));
if (((property == null)
    || property.equals(java.awt.Image.UndefinedProperty)

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

@SuppressWarnings("rawtypes")
@Override
public boolean equals(Object obj) {
  if (this == obj) {
    return true;
  }
  if (obj == null) {
    return false;
  }
  if (getClass() != obj.getClass()) {
    return false;
  }
  LookupItem other = (LookupItem) obj;
  if (value == null) {
    if (other.value != null) {
      return false;
    }
  } else if (!value.equals(other.value)) {
    return false;
  }
  if (range == null) {
    if (other.range != null) {
      return false;
    }
  } else if (!range.equals(other.range)) {
    return false;
  }
  return true;
}

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

@SuppressWarnings("rawtypes")
@Override
public boolean equals(Object obj) {
  if (this == obj) {
    return true;
  }
  if (obj == null) {
    return false;
  }
  if (getClass() != obj.getClass()) {
    return false;
  }
  LookupItem other = (LookupItem) obj;
  if (value == null) {
    if (other.value != null) {
      return false;
    }
  } else if (!value.equals(other.value)) {
    return false;
  }
  if (range == null) {
    if (other.range != null) {
      return false;
    }
  } else if (!range.equals(other.range)) {
    return false;
  }
  return true;
}

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

/**
 * Compares the specified object with this domain element list for equality. If the two objects are instances of the {@link DefaultDomain1D}
 * class, then the test check for the equality of the single elements.
 */
@SuppressWarnings("unchecked")
@Override
public boolean equals(final Object object) {
  if (this == object)
    return true;
  if (!(object instanceof DefaultDomain1D))
    return false;
  final DefaultDomain1D that = (DefaultDomain1D) object;
  if (getEquivalenceClass() != that.getEquivalenceClass())
    return false;
  if (!this.getName().equals(that.getName()))
    return false;
  if (!this.getApproximateDomainRange().equals(that.getApproximateDomainRange()))
    return false;
  if (Arrays.equals(this.elements, that.elements)) {
    assert Arrays.equals(this.minimums, that.minimums);
    return true;
  }
  return false;
}

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

/**
 * Compares the specified object with this domain element list for equality. If the two objects are instances of the {@link DefaultDomain1D}
 * class, then the test check for the equality of the single elements.
 */
@SuppressWarnings("unchecked")
@Override
public boolean equals(final Object object) {
  if (this == object)
    return true;
  if (!(object instanceof DefaultDomain1D))
    return false;
  final DefaultDomain1D that = (DefaultDomain1D) object;
  if (getEquivalenceClass() != that.getEquivalenceClass())
    return false;
  if (!this.getName().equals(that.getName()))
    return false;
  if (!this.getApproximateDomainRange().equals(that.getApproximateDomainRange()))
    return false;
  if (Arrays.equals(this.elements, that.elements)) {
    assert Arrays.equals(this.minimums, that.minimums);
    return true;
  }
  return false;
}

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

/**
 * Implementation of {@link Object#equals(Object)} for {@link DomainElement1D}s.
 * 
 * <p>
 * Two {@link DefaultDomainElement1D}s are considered to be equal if they have the same inputr range and the same name.
 * 
 * @param obj the reference object with which to compare.
 * @return <code>true</code> if this object is the same as the obj argument; <code>false</code> otherwise.
 * @see Object#equals(Object)
 */
public boolean equals(final Object obj) {
  if (obj == this) {
    return true;
  }
  if (obj instanceof DefaultDomainElement1D)
    return false;
  final DefaultDomainElement1D that = (DefaultDomainElement1D) obj;
  if (getEquivalenceClass() != that.getEquivalenceClass())
    return false;
  if (!PiecewiseUtilities.equals(inputMinimum, that.inputMinimum))
    return false;
  if (!PiecewiseUtilities.equals(inputMaximum, that.inputMaximum))
    return false;
  if (!this.name.equals(that.name))
    return false;
  if (!this.range.equals(that.range))
    return false;
  return true;
}

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

/**
 * Implementation of {@link Object#equals(Object)} for {@link DomainElement1D}s.
 * 
 * <p>
 * Two {@link DefaultDomainElement1D}s are considered to be equal if they have the same inputr range and the same name.
 * 
 * @param obj the reference object with which to compare.
 * @return <code>true</code> if this object is the same as the obj argument; <code>false</code> otherwise.
 * @see Object#equals(Object)
 */
public boolean equals(final Object obj) {
  if (obj == this) {
    return true;
  }
  if (obj instanceof DefaultDomainElement1D)
    return false;
  final DefaultDomainElement1D that = (DefaultDomainElement1D) obj;
  if (getEquivalenceClass() != that.getEquivalenceClass())
    return false;
  if (!PiecewiseUtilities.equals(inputMinimum, that.inputMinimum))
    return false;
  if (!PiecewiseUtilities.equals(inputMaximum, that.inputMaximum))
    return false;
  if (!this.name.equals(that.name))
    return false;
  if (!this.range.equals(that.range))
    return false;
  return true;
}

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

@Override
public boolean equals(Object obj) {
  if (this == obj)
    return true;
  if (!(obj instanceof DefaultLinearPiecewiseTransform1DElement))
    return false;
  final DefaultLinearPiecewiseTransform1DElement that = (DefaultLinearPiecewiseTransform1DElement) obj;
  if (that.getEquivalenceClass() != this.getEquivalenceClass())
    return false;
  if (!outputRange.equals(that.outputRange))
    return false;
  if (!PiecewiseUtilities.equals(outputMaximum, that.outputMaximum))
    return false;
  if (!PiecewiseUtilities.equals(outputMinimum, that.outputMinimum))
    return false;
  return super.equals(obj);
}

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

@Override
public boolean equals(Object obj) {
  if (this == obj)
    return true;
  if (!(obj instanceof DefaultLinearPiecewiseTransform1DElement))
    return false;
  final DefaultLinearPiecewiseTransform1DElement that = (DefaultLinearPiecewiseTransform1DElement) obj;
  if (that.getEquivalenceClass() != this.getEquivalenceClass())
    return false;
  if (!outputRange.equals(that.outputRange))
    return false;
  if (!PiecewiseUtilities.equals(outputMaximum, that.outputMaximum))
    return false;
  if (!PiecewiseUtilities.equals(outputMinimum, that.outputMinimum))
    return false;
  return super.equals(obj);
}

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

if (noData == null || !noData.equals(firstNoData)) {
  return false;

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

public int compare(Range other) {
  if (this.equals(other)) {
    return 0;

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

public int compare(Range other) {
  if (this.equals(other)) {
    return 0;

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

if (r1.equals(r2)) {
  return list; // empty list
if (common.equals(r2)) {
  return list; // empty list

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

if (r1.equals(r2)) {
  return list; // empty list
if (common.equals(r2)) {
  return list; // empty list

相关文章