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

de.mklinger.qetcher.client.model.v1.NodeAddress Maven / Gradle / Ivy

The newest version!
package de.mklinger.qetcher.client.model.v1;

/**
 * @author Marc Klinger - mklinger[at]mklinger[dot]de
 */
public interface NodeAddress {
	String getHost();
	String toHostUriString();
	int getPort();
	String toUriString();

	/**
	 * Two node addresses are considered equal, if hosts and ports are equal.
	 */
	@Override
	boolean equals(Object obj);

	/**
	 * Two node addresses with equal hosts and ports produce the same hash code.
	 */
	@Override
	int hashCode();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy