Record Class ToleranciaDTO
java.lang.Object
java.lang.Record
br.com.intersys.systextil.function.cadastrotolerancia.dto.ToleranciaDTO
- Record Components:
valorFinal- Valor m�ximo permitido para a toler�nciavalorInicial- Valor m�nimo permitido para a toler�ncialimiteSup- Limite superior da faixa de toler�ncialimiteInf- Limite inferior da faixa de toler�nciaqtdeFaturada- Quantidade j� faturada do pedidoqtdePedida- Quantidade total pedidaresultado- Resultado de c�lculos realizadospermitirAloc- Flag que indica se � permitido realizar a aloca��otemRegra- Flag que indica se existe uma regra aplicada
public record ToleranciaDTO(double valorFinal, double valorInicial, double limiteSup, double limiteInf, double qtdeFaturada, double qtdePedida, double qtdeAfaturar, double resultado, double saldo, boolean permitirAloc, boolean temRegra)
extends Record
Representa os dados de tolerância utilizados no processo de alocação e validação de pedidos.
Este DTO (Data Transfer Object) contém informações sobre limites de tolerância, quantidades envolvidas no pedido e indicadores auxiliares para determinar regras de negócio específicas.
Campos principais:
valorFinal� Valor m�ximo permitido para a tolerância.valorInicial� Valor m�nimo permitido para a tolerância.limiteSup� Limite superior da faixa de tolerância.limiteInf� Limite inferior da faixa de tolerância.qtdeFaturada� Quantidade já faturada do pedido.qtdePedida� Quantidade total pedida.resultado� Resultado de cálculos ou validações realizados sobre os dados.permitirAloc� Indica se é permitido realizar a alocação de rolos (true/false).temRegra� Indica se existe uma regra de toler�ncia aplicada (true/false).
Este record � imut�vel e foi projetado para ser utilizado como retorno de consultas ou c�lculos relacionados �s toler�ncias de pedidos dentro do sistema.
-
Constructor Summary
ConstructorsConstructorDescriptionToleranciaDTO(double valorFinal, double valorInicial, double limiteSup, double limiteInf, double qtdeFaturada, double qtdePedida, double qtdeAfaturar, double resultado, double saldo, boolean permitirAloc, boolean temRegra) Creates an instance of aToleranciaDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of thelimiteInfrecord component.doubleReturns the value of thelimiteSuprecord component.booleanReturns the value of thepermitirAlocrecord component.doubleReturns the value of theqtdeAfaturarrecord component.doubleReturns the value of theqtdeFaturadarecord component.doubleReturns the value of theqtdePedidarecord component.doubleReturns the value of theresultadorecord component.doublesaldo()Returns the value of thesaldorecord component.booleantemRegra()Returns the value of thetemRegrarecord component.final StringtoString()Returns a string representation of this record class.doubleReturns the value of thevalorFinalrecord component.doubleReturns the value of thevalorInicialrecord component.
-
Constructor Details
-
ToleranciaDTO
public ToleranciaDTO(double valorFinal, double valorInicial, double limiteSup, double limiteInf, double qtdeFaturada, double qtdePedida, double qtdeAfaturar, double resultado, double saldo, boolean permitirAloc, boolean temRegra) Creates an instance of aToleranciaDTOrecord class.- Parameters:
valorFinal- the value for thevalorFinalrecord componentvalorInicial- the value for thevalorInicialrecord componentlimiteSup- the value for thelimiteSuprecord componentlimiteInf- the value for thelimiteInfrecord componentqtdeFaturada- the value for theqtdeFaturadarecord componentqtdePedida- the value for theqtdePedidarecord componentqtdeAfaturar- the value for theqtdeAfaturarrecord componentresultado- the value for theresultadorecord componentsaldo- the value for thesaldorecord componentpermitirAloc- the value for thepermitirAlocrecord componenttemRegra- the value for thetemRegrarecord 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. All components in this record class are compared with '=='. -
valorFinal
public double valorFinal()Returns the value of thevalorFinalrecord component.- Returns:
- the value of the
valorFinalrecord component
-
valorInicial
public double valorInicial()Returns the value of thevalorInicialrecord component.- Returns:
- the value of the
valorInicialrecord component
-
limiteSup
public double limiteSup()Returns the value of thelimiteSuprecord component.- Returns:
- the value of the
limiteSuprecord component
-
limiteInf
public double limiteInf()Returns the value of thelimiteInfrecord component.- Returns:
- the value of the
limiteInfrecord component
-
qtdeFaturada
public double qtdeFaturada()Returns the value of theqtdeFaturadarecord component.- Returns:
- the value of the
qtdeFaturadarecord component
-
qtdePedida
public double qtdePedida()Returns the value of theqtdePedidarecord component.- Returns:
- the value of the
qtdePedidarecord component
-
qtdeAfaturar
public double qtdeAfaturar()Returns the value of theqtdeAfaturarrecord component.- Returns:
- the value of the
qtdeAfaturarrecord component
-
resultado
public double resultado()Returns the value of theresultadorecord component.- Returns:
- the value of the
resultadorecord component
-
saldo
public double saldo()Returns the value of thesaldorecord component.- Returns:
- the value of the
saldorecord component
-
permitirAloc
public boolean permitirAloc()Returns the value of thepermitirAlocrecord component.- Returns:
- the value of the
permitirAlocrecord component
-
temRegra
public boolean temRegra()Returns the value of thetemRegrarecord component.- Returns:
- the value of the
temRegrarecord component
-