com.liberologico.cloudesire.cmw.model.dto.IdentificationDocumentDTO Maven / Gradle / Ivy
The newest version!
package com.liberologico.cloudesire.cmw.model.dto;
import java.io.Serializable;
import java.util.Objects;
public class IdentificationDocumentDTO extends DTO implements Serializable
{
private String type;
private String number;
private String issuer;
public IdentificationDocumentDTO( String type, String number, String issuer )
{
this.type = type;
this.number = number;
this.issuer = issuer;
}
public IdentificationDocumentDTO()
{
}
public String getType()
{
return type;
}
public void setType( String type )
{
this.type = type;
}
public String getNumber()
{
return number;
}
public void setNumber( String number )
{
this.number = number;
}
public String getIssuer()
{
return issuer;
}
public void setIssuer( String issuer )
{
this.issuer = issuer;
}
@Override
public boolean equals( Object o )
{
if ( this == o ) return true;
if ( o == null || getClass() != o.getClass() ) return false;
IdentificationDocumentDTO that = (IdentificationDocumentDTO) o;
return Objects.equals( type, that.type ) && Objects.equals( number, that.number ) && Objects
.equals( issuer, that.issuer );
}
@Override
public int hashCode()
{
return Objects.hash( type, number, issuer );
}
}