Record Class OrdemResolvidaDTO
java.lang.Object
java.lang.Record
br.com.intersys.systextil.function.pcpc.rotinarecalculo.dto.OrdemResolvidaDTO
- Record Components:
ordemConfeccao- número de ordem de confecção a usar no INSERT daPCPC_040periodoProducao- período de produção correspondente (pode vir daTMRP_615se reaproveitado)reaproveitada-truese o número veio daTMRP_615; quandofalse, oPCPC_010.ultimo_numerodeve ser atualizado ao final do processo
public record OrdemResolvidaDTO(int ordemConfeccao, int periodoProducao, boolean reaproveitada)
extends Record
Resultado da resolução de uma ordem de confecção no loop de lotes do recálculo.
-
Constructor Summary
ConstructorsConstructorDescriptionOrdemResolvidaDTO(int ordemConfeccao, int periodoProducao, boolean reaproveitada) Creates an instance of aOrdemResolvidaDTOrecord 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.intReturns the value of theordemConfeccaorecord component.intReturns the value of theperiodoProducaorecord component.booleanReturns the value of thereaproveitadarecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OrdemResolvidaDTO
public OrdemResolvidaDTO(int ordemConfeccao, int periodoProducao, boolean reaproveitada) Creates an instance of aOrdemResolvidaDTOrecord class.- Parameters:
ordemConfeccao- the value for theordemConfeccaorecord componentperiodoProducao- the value for theperiodoProducaorecord componentreaproveitada- the value for thereaproveitadarecord 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 '=='. -
ordemConfeccao
public int ordemConfeccao()Returns the value of theordemConfeccaorecord component.- Returns:
- the value of the
ordemConfeccaorecord component
-
periodoProducao
public int periodoProducao()Returns the value of theperiodoProducaorecord component.- Returns:
- the value of the
periodoProducaorecord component
-
reaproveitada
public boolean reaproveitada()Returns the value of thereaproveitadarecord component.- Returns:
- the value of the
reaproveitadarecord component
-