Record Class ServicoOrdenacao.Solicitacao

java.lang.Object
java.lang.Record
br.unip.aps.sorting.ServicoOrdenacao.Solicitacao
Enclosing class:
ServicoOrdenacao

public static record ServicoOrdenacao.Solicitacao(AlgoritmoTipo algoritmo, Criterios criterios, int tamanho, boolean amostraAleatoria, CenarioEntrada cenario, long semente) extends Record
Parametros de uma solicitacao de ordenacao.
  • Constructor Details

    • Solicitacao

      public Solicitacao(AlgoritmoTipo algoritmo, Criterios criterios, int tamanho, boolean amostraAleatoria, CenarioEntrada cenario, long semente)
      Creates an instance of a Solicitacao record class.
      Parameters:
      algoritmo - the value for the algoritmo record component
      criterios - the value for the criterios record component
      tamanho - the value for the tamanho record component
      amostraAleatoria - the value for the amostraAleatoria record component
      cenario - the value for the cenario record component
      semente - the value for the semente record component
  • Method Details

    • de

      public static ServicoOrdenacao.Solicitacao de(AlgoritmoTipo algoritmo, Criterios criterios)
      Solicitacao simples: base inteira, ordem original.
    • 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.
    • algoritmo

      public AlgoritmoTipo algoritmo()
      Returns the value of the algoritmo record component.
      Returns:
      the value of the algoritmo record component
    • criterios

      public Criterios criterios()
      Returns the value of the criterios record component.
      Returns:
      the value of the criterios record component
    • tamanho

      public int tamanho()
      Returns the value of the tamanho record component.
      Returns:
      the value of the tamanho record component
    • amostraAleatoria

      public boolean amostraAleatoria()
      Returns the value of the amostraAleatoria record component.
      Returns:
      the value of the amostraAleatoria record component
    • cenario

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

      public long semente()
      Returns the value of the semente record component.
      Returns:
      the value of the semente record component