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�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 realizados
permitirAloc - Flag que indica se � permitido realizar a aloca��o
temRegra - 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

    Constructors
    Constructor
    Description
    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 a ToleranciaDTO record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    double
    Returns the value of the limiteInf record component.
    double
    Returns the value of the limiteSup record component.
    boolean
    Returns the value of the permitirAloc record component.
    double
    Returns the value of the qtdeAfaturar record component.
    double
    Returns the value of the qtdeFaturada record component.
    double
    Returns the value of the qtdePedida record component.
    double
    Returns the value of the resultado record component.
    double
    Returns the value of the saldo record component.
    boolean
    Returns the value of the temRegra record component.
    final String
    Returns a string representation of this record class.
    double
    Returns the value of the valorFinal record component.
    double
    Returns the value of the valorInicial record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a ToleranciaDTO record class.
      Parameters:
      valorFinal - the value for the valorFinal record component
      valorInicial - the value for the valorInicial record component
      limiteSup - the value for the limiteSup record component
      limiteInf - the value for the limiteInf record component
      qtdeFaturada - the value for the qtdeFaturada record component
      qtdePedida - the value for the qtdePedida record component
      qtdeAfaturar - the value for the qtdeAfaturar record component
      resultado - the value for the resultado record component
      saldo - the value for the saldo record component
      permitirAloc - the value for the permitirAloc record component
      temRegra - the value for the temRegra record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • valorFinal

      public double valorFinal()
      Returns the value of the valorFinal record component.
      Returns:
      the value of the valorFinal record component
    • valorInicial

      public double valorInicial()
      Returns the value of the valorInicial record component.
      Returns:
      the value of the valorInicial record component
    • limiteSup

      public double limiteSup()
      Returns the value of the limiteSup record component.
      Returns:
      the value of the limiteSup record component
    • limiteInf

      public double limiteInf()
      Returns the value of the limiteInf record component.
      Returns:
      the value of the limiteInf record component
    • qtdeFaturada

      public double qtdeFaturada()
      Returns the value of the qtdeFaturada record component.
      Returns:
      the value of the qtdeFaturada record component
    • qtdePedida

      public double qtdePedida()
      Returns the value of the qtdePedida record component.
      Returns:
      the value of the qtdePedida record component
    • qtdeAfaturar

      public double qtdeAfaturar()
      Returns the value of the qtdeAfaturar record component.
      Returns:
      the value of the qtdeAfaturar record component
    • resultado

      public double resultado()
      Returns the value of the resultado record component.
      Returns:
      the value of the resultado record component
    • saldo

      public double saldo()
      Returns the value of the saldo record component.
      Returns:
      the value of the saldo record component
    • permitirAloc

      public boolean permitirAloc()
      Returns the value of the permitirAloc record component.
      Returns:
      the value of the permitirAloc record component
    • temRegra

      public boolean temRegra()
      Returns the value of the temRegra record component.
      Returns:
      the value of the temRegra record component