Record Class ValidacaoSaldoSolicitacao.Regra

java.lang.Object
java.lang.Record
br.com.intersys.systextil.function.creditopedido.analises.ValidacaoSaldoSolicitacao.Regra
Record Components:
valida - crec.validaSaldoAdiantamentoSolicitacao; desligado, vale a regra anterior
permiteSaldoInsuficiente - crec.permiteFaturarSaldoInsuficiente
toleranciaTipo - crec.toleranciaAdiantamentoTipo: 0 = valor, 1 = percentual sobre o valor comparado
toleranciaFalta - crec.toleranciaAdiantamentoFalta; 0 = sem tolerância
Enclosing class:
ValidacaoSaldoSolicitacao

public static record ValidacaoSaldoSolicitacao.Regra(boolean valida, boolean permiteSaldoInsuficiente, int toleranciaTipo, double toleranciaFalta) extends Record
Parâmetros de empresa da validação (crec.* da EMPR_007).
  • Field Details

  • Constructor Details

    • Regra

      public Regra(boolean valida, boolean permiteSaldoInsuficiente, int toleranciaTipo, double toleranciaFalta)
      Creates an instance of a Regra record class.
      Parameters:
      valida - the value for the valida record component
      permiteSaldoInsuficiente - the value for the permiteSaldoInsuficiente record component
      toleranciaTipo - the value for the toleranciaTipo record component
      toleranciaFalta - the value for the toleranciaFalta 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.
    • valida

      public boolean valida()
      Returns the value of the valida record component.
      Returns:
      the value of the valida record component
    • permiteSaldoInsuficiente

      public boolean permiteSaldoInsuficiente()
      Returns the value of the permiteSaldoInsuficiente record component.
      Returns:
      the value of the permiteSaldoInsuficiente record component
    • toleranciaTipo

      public int toleranciaTipo()
      Returns the value of the toleranciaTipo record component.
      Returns:
      the value of the toleranciaTipo record component
    • toleranciaFalta

      public double toleranciaFalta()
      Returns the value of the toleranciaFalta record component.
      Returns:
      the value of the toleranciaFalta record component