Record Class ResultadoDTO
java.lang.Object
java.lang.Record
br.com.intersys.systextil.function.pcpc.rotinarecalculo.dto.ResultadoDTO
- Record Components:
sucesso-truese o processo concluiu sem errosmensagemTag- tag da mensagem a exibir viautilTag.buscarTag()(ex:"ds16204"para sucesso,"ds23922"para erro genérico,"ds30021"para estágio de liberação já produzido)
Resultado do processo de recálculo devolvido ao chamador (form/function) para que este decida
sobre commit/rollback e exibição de mensagem ao usuário.
-
Constructor Summary
ConstructorsConstructorDescriptionResultadoDTO(boolean sucesso, String mensagemTag) Creates an instance of aResultadoDTOrecord 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.Returns the value of themensagemTagrecord component.booleansucesso()Returns the value of thesucessorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResultadoDTO
Creates an instance of aResultadoDTOrecord class.- Parameters:
sucesso- the value for thesucessorecord componentmensagemTag- the value for themensagemTagrecord 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 '=='. -
sucesso
public boolean sucesso()Returns the value of thesucessorecord component.- Returns:
- the value of the
sucessorecord component
-
mensagemTag
Returns the value of themensagemTagrecord component.- Returns:
- the value of the
mensagemTagrecord component
-