Package br.unip.aps.ui.componentes
Record Class Pseudocodigo
java.lang.Object
java.lang.Record
br.unip.aps.ui.componentes.Pseudocodigo
public record Pseudocodigo(List<String> linhas, int comparacao, int troca, int escrita)
extends Record
Pseudocodigo de cada algoritmo e a linha que corresponde a cada tipo de operacao (comparacao, troca, escrita).
-
Constructor Summary
ConstructorsConstructorDescriptionPseudocodigo(List<String> linhas, int comparacao, int troca, int escrita) Creates an instance of aPseudocodigorecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecomparacaorecord component.static Pseudocodigode(AlgoritmoTipo tipo) Pseudocodigo do algoritmo, em portugues, no nivel de detalhe das operacoes contadas.final booleanIndicates whether some other object is "equal to" this one.intescrita()Returns the value of theescritarecord component.final inthashCode()Returns a hash code value for this object.linhas()Returns the value of thelinhasrecord component.final StringtoString()Returns a string representation of this record class.inttroca()Returns the value of thetrocarecord component.
-
Constructor Details
-
Pseudocodigo
Creates an instance of aPseudocodigorecord class.- Parameters:
linhas- the value for thelinhasrecord componentcomparacao- the value for thecomparacaorecord componenttroca- the value for thetrocarecord componentescrita- the value for theescritarecord component
-
-
Method Details
-
de
Pseudocodigo do algoritmo, em portugues, no nivel de detalhe das operacoes contadas. -
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 '=='. -
linhas
Returns the value of thelinhasrecord component.- Returns:
- the value of the
linhasrecord component
-
comparacao
public int comparacao()Returns the value of thecomparacaorecord component.- Returns:
- the value of the
comparacaorecord component
-
troca
public int troca()Returns the value of thetrocarecord component.- Returns:
- the value of the
trocarecord component
-
escrita
public int escrita()Returns the value of theescritarecord component.- Returns:
- the value of the
escritarecord component
-