Record Class CalculoConsumoAdiantamento.Adiantamento
java.lang.Object
java.lang.Record
systextil.contasareceber.consumoadiantamento.CalculoConsumoAdiantamento.Adiantamento
- Enclosing class:
CalculoConsumoAdiantamento
public static record CalculoConsumoAdiantamento.Adiantamento(int numero, LocalDate dataDigitacao, BigDecimal saldo, boolean pedidoFaturadoTotal)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAdiantamento(int numero, LocalDate dataDigitacao, BigDecimal saldo, boolean pedidoFaturadoTotal) Creates an instance of aAdiantamentorecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedataDigitacaorecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intnumero()Returns the value of thenumerorecord component.booleanReturns the value of thepedidoFaturadoTotalrecord component.saldo()Returns the value of thesaldorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Adiantamento
public Adiantamento(int numero, LocalDate dataDigitacao, BigDecimal saldo, boolean pedidoFaturadoTotal) Creates an instance of aAdiantamentorecord class.- Parameters:
numero- the value for thenumerorecord componentdataDigitacao- the value for thedataDigitacaorecord componentsaldo- the value for thesaldorecord componentpedidoFaturadoTotal- the value for thepedidoFaturadoTotalrecord 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 '=='. -
numero
public int numero()Returns the value of thenumerorecord component.- Returns:
- the value of the
numerorecord component
-
dataDigitacao
Returns the value of thedataDigitacaorecord component.- Returns:
- the value of the
dataDigitacaorecord component
-
saldo
Returns the value of thesaldorecord component.- Returns:
- the value of the
saldorecord component
-
pedidoFaturadoTotal
public boolean pedidoFaturadoTotal()Returns the value of thepedidoFaturadoTotalrecord component.- Returns:
- the value of the
pedidoFaturadoTotalrecord component
-