Package br.unip.aps.ui
Record Class BenchmarkController.Vencedor
java.lang.Object
java.lang.Record
br.unip.aps.ui.BenchmarkController.Vencedor
- Enclosing class:
BenchmarkController
public static record BenchmarkController.Vencedor(String criterio, String cenario, int n, String algoritmo, double mediaMs, String segundo, String ultimo)
extends Record
Linha da tabela de vencedores.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealgoritmorecord component.cenario()Returns the value of thecenariorecord component.criterio()Returns the value of thecriteriorecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doublemediaMs()Returns the value of themediaMsrecord component.intn()Returns the value of thenrecord component.segundo()Returns the value of thesegundorecord component.final StringtoString()Returns a string representation of this record class.ultimo()Returns the value of theultimorecord component.
-
Constructor Details
-
Vencedor
public Vencedor(String criterio, String cenario, int n, String algoritmo, double mediaMs, String segundo, String ultimo) Creates an instance of aVencedorrecord class.- Parameters:
criterio- the value for thecriteriorecord componentcenario- the value for thecenariorecord componentn- the value for thenrecord componentalgoritmo- the value for thealgoritmorecord componentmediaMs- the value for themediaMsrecord componentsegundo- the value for thesegundorecord componentultimo- the value for theultimorecord 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 '=='. -
criterio
Returns the value of thecriteriorecord component.- Returns:
- the value of the
criteriorecord component
-
cenario
Returns the value of thecenariorecord component.- Returns:
- the value of the
cenariorecord component
-
n
public int n()Returns the value of thenrecord component.- Returns:
- the value of the
nrecord component
-
algoritmo
Returns the value of thealgoritmorecord component.- Returns:
- the value of the
algoritmorecord component
-
mediaMs
public double mediaMs()Returns the value of themediaMsrecord component.- Returns:
- the value of the
mediaMsrecord component
-
segundo
Returns the value of thesegundorecord component.- Returns:
- the value of the
segundorecord component
-
ultimo
Returns the value of theultimorecord component.- Returns:
- the value of the
ultimorecord component
-