Record Class CalculoConsumoAdiantamento.Tolerancia
java.lang.Object
java.lang.Record
systextil.contasareceber.consumoadiantamento.CalculoConsumoAdiantamento.Tolerancia
- Enclosing class:
CalculoConsumoAdiantamento
public static record CalculoConsumoAdiantamento.Tolerancia(int tipo, BigDecimal falta, BigDecimal excedente)
extends Record
tipo: 0 = valor, 1 = percentual sobre o saldo dos títulos da NF. Limite 0 = desligado.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CalculoConsumoAdiantamento.ToleranciaTolerância desligada: a falta fica em aberto no título e a sobra fica no adiantamento. -
Constructor Summary
ConstructorsConstructorDescriptionTolerancia(int tipo, BigDecimal falta, BigDecimal excedente) Creates an instance of aToleranciarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexcedenterecord component.falta()Returns the value of thefaltarecord component.final inthashCode()Returns a hash code value for this object.inttipo()Returns the value of thetiporecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
NENHUMA
Tolerância desligada: a falta fica em aberto no título e a sobra fica no adiantamento.
-
-
Constructor Details
-
Tolerancia
Creates an instance of aToleranciarecord class.- Parameters:
tipo- the value for thetiporecord componentfalta- the value for thefaltarecord componentexcedente- the value for theexcedenterecord 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 '=='. -
tipo
public int tipo()Returns the value of thetiporecord component.- Returns:
- the value of the
tiporecord component
-
falta
Returns the value of thefaltarecord component.- Returns:
- the value of the
faltarecord component
-
excedente
Returns the value of theexcedenterecord component.- Returns:
- the value of the
excedenterecord component
-