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

io.imunity.upman.rest.RestPolicyDocumentId Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 2018 Bixbit - Krzysztof Benedyczak. All rights reserved.
 * See LICENCE.txt file for licensing information.
 */

package io.imunity.upman.rest;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Objects;

class RestPolicyDocumentId
{
	final Long id;
	@JsonCreator
	RestPolicyDocumentId(@JsonProperty("id") Long id)
	{
		this.id = id;
	}

	@Override
	public boolean equals(Object o)
	{
		if (this == o) return true;
		if (o == null || getClass() != o.getClass()) return false;
		RestPolicyDocumentId that = (RestPolicyDocumentId) o;
		return Objects.equals(id, that.id);
	}

	@Override
	public int hashCode()
	{
		return Objects.hash(id);
	}

	@Override
	public String toString()
	{
		return "RestPolicyDocumentId{" +
			"id='" + id + '\'' +
			'}';
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy