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

org.johnnei.enjin.spec.dto.CheckSession Maven / Gradle / Ivy

The newest version!
package org.johnnei.enjin.spec.dto;

public class CheckSession {

	private String session_id;

	private CheckSession(Builder builder) {
		session_id = builder.sessionId;
	}

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

	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj == null) {
			return false;
		}
		if (!(obj instanceof CheckSession)) {
			return false;
		}
		CheckSession other = (CheckSession) obj;
		if (session_id == null) {
			if (other.session_id != null) {
				return false;
			}
		} else if (!session_id.equals(other.session_id)) {
			return false;
		}
		return true;
	}

	public String getSessionId() {
		return this.session_id;
	}

	public static class Builder {

		private String sessionId;

		public Builder setSessionId(String sessionId) {
			this.sessionId = sessionId;
			return this;
		}

		public CheckSession build() {
			return new CheckSession(this);
		}

	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy