Record Class ResultadoLoteDTO

java.lang.Object
java.lang.Record
br.com.intersys.systextil.function.pcpc.rotinarecalculo.dto.ResultadoLoteDTO
Record Components:
ultimoEstagio - código do último estágio inserido (0 quando nenhum estágio foi encontrado no roteiro e foi inserido o registro padrão via insertPcpc040SemEstagio)
erro - true se o Pcpc040ValidaEstagioAgrupador reportou erro bloqueante (tipoMsg > 1), interrompendo o processo

public record ResultadoLoteDTO(int ultimoEstagio, boolean erro) extends Record
Resultado da inserção dos estágios de um único lote na PCPC_040.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ResultadoLoteDTO(int ultimoEstagio, boolean erro)
    Creates an instance of a ResultadoLoteDTO record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    boolean
    Returns the value of the erro record component.
    final int
    Returns a hash code value for this object.
    final String
    Returns a string representation of this record class.
    int
    Returns the value of the ultimoEstagio record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ResultadoLoteDTO

      public ResultadoLoteDTO(int ultimoEstagio, boolean erro)
      Creates an instance of a ResultadoLoteDTO record class.
      Parameters:
      ultimoEstagio - the value for the ultimoEstagio record component
      erro - the value for the erro record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • ultimoEstagio

      public int ultimoEstagio()
      Returns the value of the ultimoEstagio record component.
      Returns:
      the value of the ultimoEstagio record component
    • erro

      public boolean erro()
      Returns the value of the erro record component.
      Returns:
      the value of the erro record component