Created
September 28, 2021 11:56
-
-
Save willyancaetano/920e74e3c6d8783398fc42269366da08 to your computer and use it in GitHub Desktop.
Classe generated by Lombok
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ContaCorrente { | |
private String id; | |
private String agencia; | |
private String conta; | |
private BigDecimal saldo; | |
private List<Lancamento> lancamentos; | |
public void setId(String id) { | |
this.id = id; | |
} | |
public void setAgencia(String agencia) { | |
this.agencia = agencia; | |
} | |
public void setConta(String conta) { | |
this.conta = conta; | |
} | |
public void setSaldo(BigDecimal saldo) { | |
this.saldo = saldo; | |
} | |
public void setLancamentos(List<Lancamento> lancamentos) { | |
this.lancamentos = lancamentos; | |
} | |
public boolean equals(Object o) { | |
if (o == this) | |
return true; | |
if (!(o instanceof ContaCorrente)) | |
return false; | |
ContaCorrente other = (ContaCorrente)o; | |
if (!other.canEqual(this)) | |
return false; | |
Object this$id = getId(), other$id = other.getId(); | |
if ((this$id == null) ? (other$id != null) : !this$id.equals(other$id)) | |
return false; | |
Object this$agencia = getAgencia(), other$agencia = other.getAgencia(); | |
if ((this$agencia == null) ? (other$agencia != null) : !this$agencia.equals(other$agencia)) | |
return false; | |
Object this$conta = getConta(), other$conta = other.getConta(); | |
if ((this$conta == null) ? (other$conta != null) : !this$conta.equals(other$conta)) | |
return false; | |
Object this$saldo = getSaldo(), other$saldo = other.getSaldo(); | |
if ((this$saldo == null) ? (other$saldo != null) : !this$saldo.equals(other$saldo)) | |
return false; | |
Object<Lancamento> this$lancamentos = (Object<Lancamento>)getLancamentos(), other$lancamentos = (Object<Lancamento>)other.getLancamentos(); | |
return !((this$lancamentos == null) ? (other$lancamentos != null) : !this$lancamentos.equals(other$lancamentos)); | |
} | |
protected boolean canEqual(Object other) { | |
return other instanceof ContaCorrente; | |
} | |
public int hashCode() { | |
int PRIME = 59; | |
result = 1; | |
Object $id = getId(); | |
result = result * 59 + (($id == null) ? 43 : $id.hashCode()); | |
Object $agencia = getAgencia(); | |
result = result * 59 + (($agencia == null) ? 43 : $agencia.hashCode()); | |
Object $conta = getConta(); | |
result = result * 59 + (($conta == null) ? 43 : $conta.hashCode()); | |
Object $saldo = getSaldo(); | |
result = result * 59 + (($saldo == null) ? 43 : $saldo.hashCode()); | |
Object<Lancamento> $lancamentos = (Object<Lancamento>)getLancamentos(); | |
return result * 59 + (($lancamentos == null) ? 43 : $lancamentos.hashCode()); | |
} | |
public String toString() { | |
return "ContaCorrente(id=" + getId() + ", agencia=" + getAgencia() + ", conta=" + getConta() + ", saldo=" + getSaldo() + ", lancamentos=" + getLancamentos() + ")"; | |
} | |
public String getId() { | |
return this.id; | |
} | |
public String getAgencia() { | |
return this.agencia; | |
} | |
public String getConta() { | |
return this.conta; | |
} | |
public BigDecimal getSaldo() { | |
return this.saldo; | |
} | |
public List<Lancamento> getLancamentos() { | |
return this.lancamentos; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment