org.geotools.util.factory.Hints.equals()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(99)

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

Hints.equals介绍

暂无

代码示例

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

@Override
  public boolean equals(Object obj) {
    if (this == obj) return true;
    if (obj == null) return false;
    if (getClass() != obj.getClass()) return false;
    CoverageHintReaderKey other = (CoverageHintReaderKey) obj;
    if (hints == null) {
      if (other.hints != null) return false;
    } else if (!hints.equals(other.hints)) return false;
    if (id == null) {
      if (other.id != null) return false;
    } else if (!id.equals(other.id)) return false;
    return true;
  }
}

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

@Override
  public boolean equals(Object obj) {
    if (this == obj) return true;
    if (obj == null) return false;
    if (getClass() != obj.getClass()) return false;
    Index other = (Index) obj;
    if (attributes == null) {
      if (other.attributes != null) return false;
    } else if (!attributes.equals(other.attributes)) return false;
    if (hints == null) {
      if (other.hints != null) return false;
    } else if (!hints.equals(other.hints)) return false;
    if (indexName == null) {
      if (other.indexName != null) return false;
    } else if (!indexName.equals(other.indexName)) return false;
    if (typeName == null) {
      if (other.typeName != null) return false;
    } else if (!typeName.equals(other.typeName)) return false;
    if (unique != other.unique) return false;
    return true;
  }
}

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

&& (getHints() == null
    ? (other.getHints() == null)
    : getHints().equals(other.getHints()));

相关文章