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

    Constructors
    Constructor
    Description
    Complexidade(String melhorCaso, String casoMedio, String piorCaso, String espaco, boolean estavel, boolean inPlace, boolean quadratico, boolean baseadoEmComparacao)
    Creates an instance of a Complexidade record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the baseadoEmComparacao record component.
    Returns the value of the casoMedio record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the espaco record component.
    boolean
    Returns the value of the estavel record component.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the inPlace record component.
    Returns the value of the melhorCaso record component.
    Returns the value of the piorCaso record component.
    boolean
    Returns the value of the quadratico record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a Complexidade record class.
      Parameters:
      melhorCaso - the value for the melhorCaso record component
      casoMedio - the value for the casoMedio record component
      piorCaso - the value for the piorCaso record component
      espaco - the value for the espaco record component
      estavel - the value for the estavel record component
      inPlace - the value for the inPlace record component
      quadratico - the value for the quadratico record component
      baseadoEmComparacao - the value for the baseadoEmComparacao record component
  • Method Details

    • 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.
    • melhorCaso

      public String melhorCaso()
      Returns the value of the melhorCaso record component.
      Returns:
      the value of the melhorCaso record component
    • casoMedio

      public String casoMedio()
      Returns the value of the casoMedio record component.
      Returns:
      the value of the casoMedio record component
    • piorCaso

      public String piorCaso()
      Returns the value of the piorCaso record component.
      Returns:
      the value of the piorCaso record component
    • espaco

      public String espaco()
      Returns the value of the espaco record component.
      Returns:
      the value of the espaco record component
    • estavel

      public boolean estavel()
      Returns the value of the estavel record component.
      Returns:
      the value of the estavel record component
    • inPlace

      public boolean inPlace()
      Returns the value of the inPlace record component.
      Returns:
      the value of the inPlace record component
    • quadratico

      public boolean quadratico()
      Returns the value of the quadratico record component.
      Returns:
      the value of the quadratico record component
    • baseadoEmComparacao

      public boolean baseadoEmComparacao()
      Returns the value of the baseadoEmComparacao record component.
      Returns:
      the value of the baseadoEmComparacao record component