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

com.soulgalore.velocity.UrlRequests Maven / Gradle / Ivy

There is a newer version: 1.8.8
Show newest version
package com.soulgalore.velocity;

public class UrlRequests {
	private String url;
	private Integer nrOfTimes;

	public String getUrl() {
		return url;
	}

	public Integer getNrOfTimes() {
		return nrOfTimes;
	}

	public UrlRequests(String url, Integer norOfTimes) {
		super();
		this.url = url;
		this.nrOfTimes = norOfTimes;
	}

	@Override
	public String toString() {
		return "UrlRequests [url=" + url + ", nrOfTimes=" + nrOfTimes + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((nrOfTimes == null) ? 0 : nrOfTimes.hashCode());
		result = prime * result + ((url == null) ? 0 : url.hashCode());
		return result;
	}

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy