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 anteriorpermiteSaldoInsuficiente-crec.permiteFaturarSaldoInsuficientetoleranciaTipo-crec.toleranciaAdiantamentoTipo: 0 = valor, 1 = percentual sobre o valor comparadotoleranciaFalta-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 Summary
FieldsModifier and TypeFieldDescriptionstatic final ValidacaoSaldoSolicitacao.RegraValidação desligada: a análise decide como antes dos parâmetros. -
Constructor Summary
ConstructorsConstructorDescriptionRegra(boolean valida, boolean permiteSaldoInsuficiente, int toleranciaTipo, double toleranciaFalta) Creates an instance of aRegrarecord 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.booleanReturns the value of thepermiteSaldoInsuficienterecord component.doubleReturns the value of thetoleranciaFaltarecord component.intReturns the value of thetoleranciaTiporecord component.final StringtoString()Returns a string representation of this record class.booleanvalida()Returns the value of thevalidarecord component.
-
Field Details
-
DESLIGADA
Validação desligada: a análise decide como antes dos parâmetros.
-
-
Constructor Details
-
Regra
public Regra(boolean valida, boolean permiteSaldoInsuficiente, int toleranciaTipo, double toleranciaFalta) Creates an instance of aRegrarecord class.- Parameters:
valida- the value for thevalidarecord componentpermiteSaldoInsuficiente- the value for thepermiteSaldoInsuficienterecord componenttoleranciaTipo- the value for thetoleranciaTiporecord componenttoleranciaFalta- the value for thetoleranciaFaltarecord 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 '=='. -
valida
public boolean valida()Returns the value of thevalidarecord component.- Returns:
- the value of the
validarecord component
-
permiteSaldoInsuficiente
public boolean permiteSaldoInsuficiente()Returns the value of thepermiteSaldoInsuficienterecord component.- Returns:
- the value of the
permiteSaldoInsuficienterecord component
-
toleranciaTipo
public int toleranciaTipo()Returns the value of thetoleranciaTiporecord component.- Returns:
- the value of the
toleranciaTiporecord component
-
toleranciaFalta
public double toleranciaFalta()Returns the value of thetoleranciaFaltarecord component.- Returns:
- the value of the
toleranciaFaltarecord component
-