return true;
if (obj == null)
return false;
if (!(obj instanceof LayerInfo))
return false;
final LayerInfo other = (LayerInfo) obj;
if (defaultStyle == null) {
if (other.getDefaultStyle() != null)
return false;
} else if (!defaultStyle.equals(other.getDefaultStyle()))
return false;
if (enabled != other.isEnabled())
return false;
if (id == null) {
if (other.getId() != null)
return false;
} else if (!id.equals(other.getId()))
return false;
if (legend == null) {
if (other.getLegend() != null)
return false;
} else if (!legend.equals(other.getLegend()))
return false;
// TODO: add back when resource/publish split is in place
// if (name == null) {
// if (other.getName() != null)
// return false;
// } else if (!name.equals(other.getName()))
// return false;
if (path == null) {
if (other.getPath() != null)
return false;
} else if (!path.equals(other.getPath()))
return false;
if (resource == null) {
if (other.getResource() != null)
return false;
} else if (!resource.equals(other.getResource()))
return false;
if (styles == null) {
if (other.getStyles() != null)
return false;
} else if (!styles.equals(other.getStyles()))
return false;
if (type == null) {
if (other.getType() != null)
return false;
} else if (!type.equals(other.getType()))
return false;
if (attribution == null) {
if (other.getAttribution() != null)
return false;
} else if (!attribution.equals(other.getAttribution()))
return false;
return true;
}