Package br.unip.aps.sorting
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 Summary
ConstructorsConstructorDescriptionSolicitacao(AlgoritmoTipo algoritmo, Criterios criterios, int tamanho, boolean amostraAleatoria, CenarioEntrada cenario, long semente) Creates an instance of aSolicitacaorecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealgoritmorecord component.booleanReturns the value of theamostraAleatoriarecord component.cenario()Returns the value of thecenariorecord component.Returns the value of thecriteriosrecord component.static ServicoOrdenacao.Solicitacaode(AlgoritmoTipo algoritmo, Criterios criterios) Solicitacao simples: base inteira, ordem original.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longsemente()Returns the value of thesementerecord component.inttamanho()Returns the value of thetamanhorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Solicitacao
public Solicitacao(AlgoritmoTipo algoritmo, Criterios criterios, int tamanho, boolean amostraAleatoria, CenarioEntrada cenario, long semente) Creates an instance of aSolicitacaorecord class.- Parameters:
algoritmo- the value for thealgoritmorecord componentcriterios- the value for thecriteriosrecord componenttamanho- the value for thetamanhorecord componentamostraAleatoria- the value for theamostraAleatoriarecord componentcenario- the value for thecenariorecord componentsemente- the value for thesementerecord component
-
-
Method Details
-
de
Solicitacao simples: base inteira, ordem original. -
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 '=='. -
algoritmo
Returns the value of thealgoritmorecord component.- Returns:
- the value of the
algoritmorecord component
-
criterios
Returns the value of thecriteriosrecord component.- Returns:
- the value of the
criteriosrecord component
-
tamanho
public int tamanho()Returns the value of thetamanhorecord component.- Returns:
- the value of the
tamanhorecord component
-
amostraAleatoria
public boolean amostraAleatoria()Returns the value of theamostraAleatoriarecord component.- Returns:
- the value of the
amostraAleatoriarecord component
-
cenario
Returns the value of thecenariorecord component.- Returns:
- the value of the
cenariorecord component
-
semente
public long semente()Returns the value of thesementerecord component.- Returns:
- the value of the
sementerecord component
-