

package com.complexible.clearbit;

import com.google.common.base.Objects;

/**
 * <p></p>
 *
 * @author  Michael Grove
 * @since   0.1
 * @version 0.1
 */
public final class FoursquareInfo {
	private String mHandle;

	public String getHandle() {
		return mHandle;
	}

	public void setHandle(final String theHandle) {
		mHandle = theHandle;
	}

	/**
	 * @inheritDoc
	 */
	@Override
	public int hashCode() {
		return Objects.hashCode(mHandle);
	}

	/**
	 * @inheritDoc
	 */
	@Override
	public boolean equals(final Object theObj) {
		if (theObj == this) {
			return true;
		}
		else if (theObj instanceof FoursquareInfo) {
			FoursquareInfo aObj = (FoursquareInfo) theObj;

			return Objects.equal(mHandle, aObj.mHandle);
		}
		else {
			return false;
		}
	}

	/**
	 * @inheritDoc
	 */
	@Override
	public String toString() {
		return String.format("Foursquare(%s)", mHandle);
	}
}
