Record Class CalculoConsumoAdiantamento.Baixa<K>
java.lang.Object
java.lang.Record
systextil.contasareceber.consumoadiantamento.CalculoConsumoAdiantamento.Baixa<K>
- Enclosing class:
CalculoConsumoAdiantamento
public static record CalculoConsumoAdiantamento.Baixa<K>(CalculoConsumoAdiantamento.Titulo<K> titulo, int numeroAdiantamento, BigDecimal valorPago, BigDecimal juros, BigDecimal desconto)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBaixa(CalculoConsumoAdiantamento.Titulo<K> titulo, int numeroAdiantamento, BigDecimal valorPago, BigDecimal juros, BigDecimal desconto) Creates an instance of aBaixarecord class. -
Method Summary
Modifier and TypeMethodDescriptiondesconto()Returns the value of thedescontorecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.juros()Returns the value of thejurosrecord component.intReturns the value of thenumeroAdiantamentorecord component.titulo()Returns the value of thetitulorecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevalorPagorecord component.
-
Constructor Details
-
Baixa
public Baixa(CalculoConsumoAdiantamento.Titulo<K> titulo, int numeroAdiantamento, BigDecimal valorPago, BigDecimal juros, BigDecimal desconto) Creates an instance of aBaixarecord class.- Parameters:
titulo- the value for thetitulorecord componentnumeroAdiantamento- the value for thenumeroAdiantamentorecord componentvalorPago- the value for thevalorPagorecord componentjuros- the value for thejurosrecord componentdesconto- the value for thedescontorecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
titulo
Returns the value of thetitulorecord component.- Returns:
- the value of the
titulorecord component
-
numeroAdiantamento
public int numeroAdiantamento()Returns the value of thenumeroAdiantamentorecord component.- Returns:
- the value of the
numeroAdiantamentorecord component
-
valorPago
Returns the value of thevalorPagorecord component.- Returns:
- the value of the
valorPagorecord component
-
juros
Returns the value of thejurosrecord component.- Returns:
- the value of the
jurosrecord component
-
desconto
Returns the value of thedescontorecord component.- Returns:
- the value of the
descontorecord component
-