![JAR search and dependency download from the Maven repository](/logo.png)
com.sflpro.identity.api.common.dtos.permission.PermissionDto Maven / Gradle / Ivy
package com.sflpro.identity.api.common.dtos.permission;
import com.sflpro.identity.api.common.dtos.AbstractApiResponse;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
/**
* Company: SFL LLC
* Created on 27/11/2017
*
* @author Davit Harutyunyan
*/
public class PermissionDto extends AbstractApiResponse {
private Long id;
private String name;
private String type;
public PermissionDto() {
super();
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
PermissionDto that = (PermissionDto) o;
return new EqualsBuilder()
.appendSuper(super.equals(o))
.append(id, that.id)
.append(name, that.name)
.append(type, that.type)
.isEquals();
}
@Override
public int hashCode() {
return new HashCodeBuilder(17, 37)
.appendSuper(super.hashCode())
.append(id)
.append(name)
.append(type)
.toHashCode();
}
@Override
public String toString() {
return new ToStringBuilder(this)
.append("id", id)
.append("name", name)
.append("type", type)
.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy