Package br.unip.aps.io
Record Class RelatorioCarga.Rejeicao
java.lang.Object
java.lang.Record
br.unip.aps.io.RelatorioCarga.Rejeicao
- Enclosing class:
RelatorioCarga
public static record RelatorioCarga.Rejeicao(Path arquivo, long linha, String motivo, String conteudo)
extends Record
Detalhe de uma linha rejeitada.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionarquivo()Returns the value of thearquivorecord component.conteudo()Returns the value of theconteudorecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longlinha()Returns the value of thelinharecord component.motivo()Returns the value of themotivorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Rejeicao
Creates an instance of aRejeicaorecord class.- Parameters:
arquivo- the value for thearquivorecord componentlinha- the value for thelinharecord componentmotivo- the value for themotivorecord componentconteudo- the value for theconteudorecord 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 '=='. -
arquivo
Returns the value of thearquivorecord component.- Returns:
- the value of the
arquivorecord component
-
linha
public long linha()Returns the value of thelinharecord component.- Returns:
- the value of the
linharecord component
-
motivo
Returns the value of themotivorecord component.- Returns:
- the value of the
motivorecord component
-
conteudo
Returns the value of theconteudorecord component.- Returns:
- the value of the
conteudorecord component
-