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 Details

    • ResultadoOrdenacao

      public ResultadoOrdenacao(List<T> dados, String algoritmo, String criterio, CenarioEntrada cenario, OperationMetrics metricas, boolean verificado, String aviso)
      Creates an instance of a ResultadoOrdenacao record class.
      Parameters:
      dados - the value for the dados record component
      algoritmo - the value for the algoritmo record component
      criterio - the value for the criterio record component
      cenario - the value for the cenario record component
      metricas - the value for the metricas record component
      verificado - the value for the verificado record component
      aviso - the value for the aviso record component
  • Method Details

    • tamanho

      public int tamanho()
    • resumo

      public String resumo()
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components 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.
    • dados

      public List<T> dados()
      Returns the value of the dados record component.
      Returns:
      the value of the dados record component
    • algoritmo

      public String algoritmo()
      Returns the value of the algoritmo record component.
      Returns:
      the value of the algoritmo record component
    • criterio

      public String criterio()
      Returns the value of the criterio record component.
      Returns:
      the value of the criterio record component
    • cenario

      public CenarioEntrada cenario()
      Returns the value of the cenario record component.
      Returns:
      the value of the cenario record component
    • metricas

      public OperationMetrics metricas()
      Returns the value of the metricas record component.
      Returns:
      the value of the metricas record component
    • verificado

      public boolean verificado()
      Returns the value of the verificado record component.
      Returns:
      the value of the verificado record component
    • aviso

      public String aviso()
      Returns the value of the aviso record component.
      Returns:
      the value of the aviso record component