Package br.unip.aps.sorting
Record Class ResultadoOrdenacao<T>
java.lang.Object
java.lang.Record
br.unip.aps.sorting.ResultadoOrdenacao<T>
public record ResultadoOrdenacao<T>(List<T> dados, String algoritmo, String criterio, CenarioEntrada cenario, OperationMetrics metricas, boolean verificado, String aviso)
extends Record
Resultado de uma solicitacao de ordenacao.
-
Constructor Summary
ConstructorsConstructorDescriptionResultadoOrdenacao(List<T> dados, String algoritmo, String criterio, CenarioEntrada cenario, OperationMetrics metricas, boolean verificado, String aviso) Creates an instance of aResultadoOrdenacaorecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealgoritmorecord component.aviso()Returns the value of theavisorecord component.cenario()Returns the value of thecenariorecord component.criterio()Returns the value of thecriteriorecord component.dados()Returns the value of thedadosrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.metricas()Returns the value of themetricasrecord component.resumo()inttamanho()final StringtoString()Returns a string representation of this record class.booleanReturns the value of theverificadorecord component.
-
Constructor Details
-
ResultadoOrdenacao
public ResultadoOrdenacao(List<T> dados, String algoritmo, String criterio, CenarioEntrada cenario, OperationMetrics metricas, boolean verificado, String aviso) Creates an instance of aResultadoOrdenacaorecord class.- Parameters:
dados- the value for thedadosrecord componentalgoritmo- the value for thealgoritmorecord componentcriterio- the value for thecriteriorecord componentcenario- the value for thecenariorecord componentmetricas- the value for themetricasrecord componentverificado- the value for theverificadorecord componentaviso- the value for theavisorecord component
-
-
Method Details
-
tamanho
public int tamanho() -
resumo
-
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 '=='. -
dados
Returns the value of thedadosrecord component.- Returns:
- the value of the
dadosrecord component
-
algoritmo
Returns the value of thealgoritmorecord component.- Returns:
- the value of the
algoritmorecord component
-
criterio
Returns the value of thecriteriorecord component.- Returns:
- the value of the
criteriorecord component
-
cenario
Returns the value of thecenariorecord component.- Returns:
- the value of the
cenariorecord component
-
metricas
Returns the value of themetricasrecord component.- Returns:
- the value of the
metricasrecord component
-
verificado
public boolean verificado()Returns the value of theverificadorecord component.- Returns:
- the value of the
verificadorecord component
-
aviso
Returns the value of theavisorecord component.- Returns:
- the value of the
avisorecord component
-