com.carma.swagger.doclet.model.ResourceListingAPI Maven / Gradle / Ivy
package com.carma.swagger.doclet.model;
import com.google.common.base.Objects;
public class ResourceListingAPI {
private String path;
private String description;
@SuppressWarnings("unused")
private ResourceListingAPI() {
}
public ResourceListingAPI(String path, String description) {
this.path = path;
this.description = description;
}
public String getPath() {
return this.path;
}
public String getDescription() {
return this.description;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ResourceListingAPI that = (ResourceListingAPI) o;
return Objects.equal(this.path, that.path) && Objects.equal(this.description, that.description);
}
@Override
public int hashCode() {
return Objects.hashCode(this.path, this.description);
}
@Override
public String toString() {
return Objects.toStringHelper(this).add("path", this.path).add("description", this.description).toString();
}
}