All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.carma.swagger.doclet.model.ResourceListingAPI Maven / Gradle / Ivy

There is a newer version: 1.1.2
Show newest version
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();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy