Record Class RegraToleranciaPedido
java.lang.Object
java.lang.Record
br.com.intersys.systextil.function.cadastrotolerancia.RegraToleranciaPedido
public record RegraToleranciaPedido(double percentualInferior, double percentualSuperior, double limiteFaixaInferior, double limiteFaixaSuperior)
extends Record
Regra de tolerancia sem calculo aplicado sobre a quantidade do pedido.
-
Constructor Summary
ConstructorsConstructorDescriptionRegraToleranciaPedido(double percentualInferior, double percentualSuperior, double limiteFaixaInferior, double limiteFaixaSuperior) Creates an instance of aRegraToleranciaPedidorecord 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 thelimiteFaixaInferiorrecord component.doubleReturns the value of thelimiteFaixaSuperiorrecord component.doubleReturns the value of thepercentualInferiorrecord component.doubleReturns the value of thepercentualSuperiorrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RegraToleranciaPedido
public RegraToleranciaPedido(double percentualInferior, double percentualSuperior, double limiteFaixaInferior, double limiteFaixaSuperior) Creates an instance of aRegraToleranciaPedidorecord class.- Parameters:
percentualInferior- the value for thepercentualInferiorrecord componentpercentualSuperior- the value for thepercentualSuperiorrecord componentlimiteFaixaInferior- the value for thelimiteFaixaInferiorrecord componentlimiteFaixaSuperior- the value for thelimiteFaixaSuperiorrecord 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 '=='. -
percentualInferior
public double percentualInferior()Returns the value of thepercentualInferiorrecord component.- Returns:
- the value of the
percentualInferiorrecord component
-
percentualSuperior
public double percentualSuperior()Returns the value of thepercentualSuperiorrecord component.- Returns:
- the value of the
percentualSuperiorrecord component
-
limiteFaixaInferior
public double limiteFaixaInferior()Returns the value of thelimiteFaixaInferiorrecord component.- Returns:
- the value of the
limiteFaixaInferiorrecord component
-
limiteFaixaSuperior
public double limiteFaixaSuperior()Returns the value of thelimiteFaixaSuperiorrecord component.- Returns:
- the value of the
limiteFaixaSuperiorrecord component
-