Package br.unip.aps.io
Record Class RelatorioCarga.ResumoArquivo
java.lang.Object
java.lang.Record
br.unip.aps.io.RelatorioCarga.ResumoArquivo
- Enclosing class:
RelatorioCarga
public static record RelatorioCarga.ResumoArquivo(Path arquivo, Charset encoding, char separador, List<String> colunas, long linhasLidas, long aceitas, long rejeitadas)
extends Record
Resumo por arquivo lido.
-
Constructor Summary
ConstructorsConstructorDescriptionResumoArquivo(Path arquivo, Charset encoding, char separador, List<String> colunas, long linhasLidas, long aceitas, long rejeitadas) Creates an instance of aResumoArquivorecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongaceitas()Returns the value of theaceitasrecord component.arquivo()Returns the value of thearquivorecord component.colunas()Returns the value of thecolunasrecord component.encoding()Returns the value of theencodingrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of thelinhasLidasrecord component.longReturns the value of therejeitadasrecord component.charReturns the value of theseparadorrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResumoArquivo
public ResumoArquivo(Path arquivo, Charset encoding, char separador, List<String> colunas, long linhasLidas, long aceitas, long rejeitadas) Creates an instance of aResumoArquivorecord class.- Parameters:
arquivo- the value for thearquivorecord componentencoding- the value for theencodingrecord componentseparador- the value for theseparadorrecord componentcolunas- the value for thecolunasrecord componentlinhasLidas- the value for thelinhasLidasrecord componentaceitas- the value for theaceitasrecord componentrejeitadas- the value for therejeitadasrecord 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
-
encoding
Returns the value of theencodingrecord component.- Returns:
- the value of the
encodingrecord component
-
separador
public char separador()Returns the value of theseparadorrecord component.- Returns:
- the value of the
separadorrecord component
-
colunas
Returns the value of thecolunasrecord component.- Returns:
- the value of the
colunasrecord component
-
linhasLidas
public long linhasLidas()Returns the value of thelinhasLidasrecord component.- Returns:
- the value of the
linhasLidasrecord component
-
aceitas
public long aceitas()Returns the value of theaceitasrecord component.- Returns:
- the value of the
aceitasrecord component
-
rejeitadas
public long rejeitadas()Returns the value of therejeitadasrecord component.- Returns:
- the value of the
rejeitadasrecord component
-