本文整理了Java中org.geotools.util.Utilities.deepEquals()
方法的一些代码示例,展示了Utilities.deepEquals()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utilities.deepEquals()
方法的具体详情如下:
包路径:org.geotools.util.Utilities
类名称:Utilities
方法名:deepEquals
[英]Convenience method for testing two objects for equality. One or both objects may be null. If both are non-null and are arrays, then every array elements will be compared.
This method may be useful when the objects may or may not be array. If they are known to be arrays, consider using Arrays#deepEquals(Object[],Object[]) or one of its primitive counter-part instead.
Rules for choosing an equals or deepEquals method
代码示例来源:origin: geotools/geotools
@Override
public boolean equals(Object obj) {
if (this == obj) return true;
if (!(obj instanceof TiePoint)) return false;
final TiePoint that = (TiePoint) obj;
if (Utilities.deepEquals(this.values, that.values)) return true;
return false;
}
代码示例来源:origin: geotools/geotools
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof PropertyImpl)) {
return false;
}
PropertyImpl other = (PropertyImpl) obj;
if (!Utilities.equals(descriptor, other.descriptor)) return false;
if (!Utilities.deepEquals(value, other.value)) return false;
return true;
}
代码示例来源:origin: geotools/geotools
public boolean equals(Object o) {
if (!(o instanceof AttributeDescriptorImpl)) return false;
AttributeDescriptorImpl d = (AttributeDescriptorImpl) o;
return super.equals(o) && Utilities.deepEquals(defaultValue, d.defaultValue);
}
代码示例来源:origin: org.geotools/gt-coverage
@Override
public boolean equals(Object obj) {
if(this==obj)
return true;
if(!(obj instanceof TiePoint))
return false;
final TiePoint that= (TiePoint) obj;
if(Utilities.deepEquals(this.values, that.values))
return true;
return false;
}
代码示例来源:origin: geotools/geotools
/**
* Override of equals.
*
* @param other the object to be tested for equality.
* @return whether other is equal to this attribute Type.
*/
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof Attribute)) {
return false;
}
Attribute other = (Attribute) obj;
if (!Utilities.equals(getDescriptor(), other.getDescriptor())) {
return false;
}
if (!Utilities.deepEquals(getValue(), other.getValue())) {
return false;
}
return Utilities.equals(getIdentifier(), other.getIdentifier());
}
代码示例来源:origin: geotools/geotools
return Utilities.deepEquals(value, this.value);
代码示例来源:origin: org.geotools/gt-main
public boolean equals(Object o){
if(!(o instanceof AttributeDescriptorImpl))
return false;
AttributeDescriptorImpl d = (AttributeDescriptorImpl)o;
return super.equals(o) && Utilities.deepEquals( defaultValue, d.defaultValue );
}
代码示例来源:origin: org.geotools/gt-main
public boolean equals(Object obj) {
if ( this == obj ) {
return true;
}
if (!(obj instanceof PropertyImpl)) {
return false;
}
PropertyImpl other = (PropertyImpl) obj;
if (!Utilities.equals(descriptor, other.descriptor))
return false;
if (!Utilities.deepEquals(value, other.value))
return false;
return true;
}
代码示例来源:origin: org.geotools/gt-imagemosaic
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (!(obj instanceof CatalogBuilderConfiguration))
return false;
final CatalogBuilderConfiguration that = (CatalogBuilderConfiguration) obj;
if (this.absolute != that.absolute)
return false;
if (this.caching != that.caching)
return false;
if (this.recursive != that.recursive)
return false;
if (this.footprintManagement != that.footprintManagement)
return false;
if (!(this.indexName == null && that.indexName == null)
&& !this.indexName.equals(that.indexName))
return false;
if (!(this.locationAttribute == null && that.locationAttribute == null)
&& !this.locationAttribute.equals(that.locationAttribute))
return false;
if (!(this.rootMosaicDirectory == null && that.rootMosaicDirectory == null)
&& !this.rootMosaicDirectory.equals(that.rootMosaicDirectory))
return false;
if (!Utilities.deepEquals(this.indexingDirectories,
that.indexingDirectories))
return false;
return true;
}
代码示例来源:origin: locationtech/geowave
@Override
public void write() throws IOException {
if (live == null) {
LOGGER.error("Unable to process transaction " + transaction.toString());
throw new IOException("No current feature to write");
}
if (original == null) {
transaction.add(live.getID(), live);
} else if (!Utilities.deepEquals(live, original)) {
transaction.modify(live.getID(), original, live);
}
original = null;
live = null;
}
}
代码示例来源:origin: org.geotools/gt-main
/**
* Override of equals.
*
* @param other
* the object to be tested for equality.
*
* @return whether other is equal to this attribute Type.
*/
public boolean equals(Object obj) {
if ( this == obj ) {
return true;
}
if (!(obj instanceof Attribute)) {
return false;
}
Attribute other = (Attribute) obj;
if (!Utilities.equals(getDescriptor(), other.getDescriptor())){
return false;
}
if (!Utilities.deepEquals(getValue(), other.getValue())){
return false;
}
return Utilities.equals( getIdentifier(), other.getIdentifier());
}
代码示例来源:origin: locationtech/geogig
/**
* Override of equals.
*
* @param other the object to be tested for equality.
*
* @return whether other is equal to this attribute Type.
*/
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof Attribute)) {
return false;
}
Attribute other = (Attribute) obj;
if (!Utilities.equals(getDescriptor(), other.getDescriptor())) {
return false;
}
if (!Utilities.deepEquals(getValue(), other.getValue())) {
return false;
}
return Utilities.equals(getIdentifier(), other.getIdentifier());
}
代码示例来源:origin: org.locationtech.geogig/geogig-core
/**
* Override of equals.
*
* @param other the object to be tested for equality.
*
* @return whether other is equal to this attribute Type.
*/
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof Attribute)) {
return false;
}
Attribute other = (Attribute) obj;
if (!Utilities.equals(getDescriptor(), other.getDescriptor())) {
return false;
}
if (!Utilities.deepEquals(getValue(), other.getValue())) {
return false;
}
return Utilities.equals(getIdentifier(), other.getIdentifier());
}
代码示例来源:origin: org.geogit/geogit-core
/**
* Override of equals.
*
* @param other the object to be tested for equality.
*
* @return whether other is equal to this attribute Type.
*/
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof Attribute)) {
return false;
}
Attribute other = (Attribute) obj;
if (!Utilities.equals(getDescriptor(), other.getDescriptor())) {
return false;
}
if (!Utilities.deepEquals(getValue(), other.getValue())) {
return false;
}
return Utilities.equals(getIdentifier(), other.getIdentifier());
}
代码示例来源:origin: org.geotools/gt-main
return Utilities.deepEquals(value, this.value);
内容来源于网络,如有侵权,请联系作者删除!