Package br.unip.aps.sorting
Record Class Complexidade
java.lang.Object
java.lang.Record
br.unip.aps.sorting.Complexidade
public record Complexidade(String melhorCaso, String casoMedio, String piorCaso, String espaco, boolean estavel, boolean inPlace, boolean quadratico, boolean baseadoEmComparacao)
extends Record
Ficha tecnica de um algoritmo de ordenacao (exibida no dashboard e nos relatorios).
-
Constructor Summary
ConstructorsConstructorDescriptionComplexidade(String melhorCaso, String casoMedio, String piorCaso, String espaco, boolean estavel, boolean inPlace, boolean quadratico, boolean baseadoEmComparacao) Creates an instance of aComplexidaderecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thebaseadoEmComparacaorecord component.Returns the value of thecasoMediorecord component.final booleanIndicates whether some other object is "equal to" this one.espaco()Returns the value of theespacorecord component.booleanestavel()Returns the value of theestavelrecord component.final inthashCode()Returns a hash code value for this object.booleaninPlace()Returns the value of theinPlacerecord component.Returns the value of themelhorCasorecord component.piorCaso()Returns the value of thepiorCasorecord component.booleanReturns the value of thequadraticorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Complexidade
public Complexidade(String melhorCaso, String casoMedio, String piorCaso, String espaco, boolean estavel, boolean inPlace, boolean quadratico, boolean baseadoEmComparacao) Creates an instance of aComplexidaderecord class.- Parameters:
melhorCaso- the value for themelhorCasorecord componentcasoMedio- the value for thecasoMediorecord componentpiorCaso- the value for thepiorCasorecord componentespaco- the value for theespacorecord componentestavel- the value for theestavelrecord componentinPlace- the value for theinPlacerecord componentquadratico- the value for thequadraticorecord componentbaseadoEmComparacao- the value for thebaseadoEmComparacaorecord 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 '=='. -
melhorCaso
Returns the value of themelhorCasorecord component.- Returns:
- the value of the
melhorCasorecord component
-
casoMedio
Returns the value of thecasoMediorecord component.- Returns:
- the value of the
casoMediorecord component
-
piorCaso
Returns the value of thepiorCasorecord component.- Returns:
- the value of the
piorCasorecord component
-
espaco
Returns the value of theespacorecord component.- Returns:
- the value of the
espacorecord component
-
estavel
public boolean estavel()Returns the value of theestavelrecord component.- Returns:
- the value of the
estavelrecord component
-
inPlace
public boolean inPlace()Returns the value of theinPlacerecord component.- Returns:
- the value of the
inPlacerecord component
-
quadratico
public boolean quadratico()Returns the value of thequadraticorecord component.- Returns:
- the value of the
quadraticorecord component
-
baseadoEmComparacao
public boolean baseadoEmComparacao()Returns the value of thebaseadoEmComparacaorecord component.- Returns:
- the value of the
baseadoEmComparacaorecord component
-